]> git.bitcoin.ninja Git - rust-lightning/commit
Clean up existing and add range-based closing_signed negotiation
authorMatt Corallo <git@bluematt.me>
Tue, 20 Jul 2021 03:19:01 +0000 (03:19 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 17 Aug 2021 02:16:01 +0000 (02:16 +0000)
commit177810b1522833f85b8b1c422a455e736afe3676
tree6ca33f7131f40524b1642145a2a2d6f57f498faa
parent67ddd46aeded274caf44cc7a3f9f61975ebb1dd7
Clean up existing and add range-based closing_signed negotiation

This adds the new range-based closing_signed negotiation specified
in https://github.com/lightningnetwork/lightning-rfc/pull/847 as
well as cleans up the existing closing_signed negotiation to unify
the new codepaths and the old ones.

Note that because the new range-based closing_signed negotiation
allows the channel fundee to ultimately select the fee out of a
range specified by the funder, which we, of course, always select
the highest allowed amount from. Thus, we've added an extra round
of closing_signed in the common case as we will not simply accept
the first fee we see, always preferring to make the funder pay as
much as they're willing to.
lightning/src/ln/chanmon_update_fail_tests.rs
lightning/src/ln/channel.rs
lightning/src/ln/channelmanager.rs
lightning/src/ln/functional_test_utils.rs
lightning/src/ln/functional_tests.rs
lightning/src/util/config.rs