]> git.bitcoin.ninja Git - rust-lightning/commit
Handle retrying sign_counterparty_commitment inb funding failures 2023-09-counterparty-sign-retry
authorMatt Corallo <git@bluematt.me>
Tue, 5 Sep 2023 22:21:04 +0000 (22:21 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 6 Sep 2023 16:47:31 +0000 (16:47 +0000)
commit48aafb56f24a2f81dab1ae5a3461e5b828958863
treefa8eb85cf6523fb5a04f9495210881d6ef74cbb7
parent400ad0022518ad9fc6635dc862331bfb78938a2b
Handle retrying sign_counterparty_commitment inb 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 inbound funding_created signing
failures, regenerating the `FundingSigned` message, attempting to
re-sign, and sending it to our peers if we succeed.
lightning/src/ln/channel.rs