]> git.bitcoin.ninja Git - rust-lightning/commit
Explicitly support counterparty setting 0 channel reserve 2021-11-support-insecure-counterparty
authorMatt Corallo <git@bluematt.me>
Tue, 9 Nov 2021 21:25:33 +0000 (21:25 +0000)
committerMatt Corallo <git@bluematt.me>
Mon, 29 Nov 2021 16:57:21 +0000 (16:57 +0000)
commit25f4a54a2bdda91232a62034befc3c6d20611058
tree5a1941d1eb2ce23cee46fe38fd077bc8040bc9b1
parentf69311ccff517f01211415461db666db22290232
Explicitly support counterparty setting 0 channel reserve

A peer providing a channel_reserve_satoshis of 0 (or less than our
dust limit) is insecure, but only for them. Because some LSPs do it
with some level of trust of the clients (for a substantial UX
improvement), we explicitly allow it. Because its unlikely to
happen often in normal testing, we test it explicitly here.
lightning/src/ln/channel.rs
lightning/src/ln/channelmanager.rs
lightning/src/ln/functional_test_utils.rs
lightning/src/ln/functional_tests.rs