Handle retrying sign_counterparty_commitment outb funding failures
authorMatt Corallo <git@bluematt.me>
Tue, 5 Sep 2023 22:10:34 +0000 (22:10 +0000)
committerChris Waterson <waterson@gmail.com>
Wed, 1 Nov 2023 22:24:20 +0000 (15:24 -0700)
commit8d01309555097d361bc0f9b03e99e4f9b7a73d90
treeb2fa208e27eb4da410928e8284554f7bc630eddd
parentf36afcbae33f6785daee1b5292f37c547e2cbf5d
Handle retrying sign_counterparty_commitment outb funding failures

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).

This commit adds retrying of outbound funding_created signing
failures, regenerating the `FundingCreated` message, attempting to
re-sign, and sending it to our peers if we succeed.
lightning/src/ln/channel.rs