]> git.bitcoin.ninja Git - rust-lightning/commit
Return `ClosureReason` from `Channel` chain update methods
authorMatt Corallo <git@bluematt.me>
Thu, 30 Sep 2021 21:35:40 +0000 (21:35 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 16 Nov 2021 21:44:35 +0000 (21:44 +0000)
commitb288a2739afa18c5aedaacb00ed809c98be47187
treeda5fe3e8dbafae2e139c3373e32f5ad5fa2464dc
parent4a3139d24df6b7e60161816b2272f0b0e2a622f9
Return `ClosureReason` from `Channel` chain update methods

This fixes a few `ClosureReason`s and allows us to have
finer-grained user-visible errors when a channel closes due to an
on-chain event.
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/ln/reorg_tests.rs
lightning/src/util/events.rs