]> git.bitcoin.ninja Git - rust-lightning/commit
Makes ChannelManager::force_close_channel fail for unknown chan_ids
authorSergi Delgado Segura <sergi.delgado.s@gmail.com>
Thu, 14 Jan 2021 16:05:38 +0000 (17:05 +0100)
committerSergi Delgado Segura <sergi.delgado.s@gmail.com>
Thu, 21 Jan 2021 15:12:57 +0000 (16:12 +0100)
commit821f6cdd1ed77d0c62b0a20120a2644e71a1b464
tree3ee6fc2b8531eed8ec9a118e8d3191aed64b2807
parentd529a8827bd860ecfef73059cd5097e778f63ddc
Makes ChannelManager::force_close_channel fail for unknown chan_ids

ChannelManager::force_close_channel does not fail if a non-existing channel id is being passed, making it hard to catch from an API point of view.

Makes force_close_channel return in the same way close_channel does so the user calling the method with an unknown id can be warned.
fuzz/src/full_stack.rs
lightning-persister/src/lib.rs
lightning/src/ln/chanmon_update_fail_tests.rs
lightning/src/ln/channelmanager.rs
lightning/src/ln/functional_tests.rs