]> git.bitcoin.ninja Git - rust-lightning/commit
Finish closing channel after async closing signed
authorAlec Chen <alecchendev@gmail.com>
Thu, 5 Sep 2024 23:58:01 +0000 (18:58 -0500)
committerAlec Chen <alecchendev@gmail.com>
Mon, 9 Sep 2024 16:46:44 +0000 (09:46 -0700)
commit1fa7bf9391ad72705a61efa9f1d8fa0b98170fd2
tree134ae0c2da8d2b33c52006f9a015d6dd3da8c065
parentd35239ca6216c69a58222dea38fa1cfdb8388a8a
Finish closing channel after async closing signed

In addressing a followup to test reconnection during closing negotation
with async signing, we change things to only return a `ShutdownResult`
when we actually finish shutting down the channel, i.e. we have the
signature ready to send the final closing signed. This slightly
simplifies the logic where we would shutdown our channel
prematurely before we got the final signature. This also means
that we don't push multiple `ChannelClosed` events if we receive closing
signed, reconnect, and receive closing signed again.
lightning/src/ln/async_signer_tests.rs
lightning/src/ln/channel.rs
lightning/src/ln/channelmanager.rs
lightning/src/ln/functional_test_utils.rs