Handle sign_counterparty_commitment failing during inb funding
authorMatt Corallo <git@bluematt.me>
Tue, 5 Sep 2023 21:13:07 +0000 (21:13 +0000)
committerChris Waterson <waterson@gmail.com>
Wed, 1 Nov 2023 21:41:08 +0000 (14:41 -0700)
commit0e3f6b60297101d0a9d451bddf84197d69df6dda
treea69c0ace1708339e47d424eb12c97a748e214a0b
parentd86f73b8d50b19c65264c3ed53c98edbc68613f3
Handle sign_counterparty_commitment failing during inb funding

If sign_counterparty_commitment fails (i.e. because the signer is
temporarily disconnected), this really indicates that we should
retry the message sending which required the signature later,
rather than force-closing the channel (which probably won't even
work if the signer is missing).

Here we add initial handling of sign_counterparty_commitment
failing during inbound channel funding, setting a flag in
`ChannelContext` which indicates we should retry sending the
`funding_signed` later. We don't yet add any ability to do that
retry.
lightning/src/ln/channel.rs
lightning/src/ln/channelmanager.rs