]> git.bitcoin.ninja Git - rust-lightning/commit
Handle retrying sign_counterparty_commitment outb funding failures
authorMatt Corallo <git@bluematt.me>
Tue, 5 Sep 2023 22:10:34 +0000 (22:10 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 5 Sep 2023 22:10:34 +0000 (22:10 +0000)
commit400ad0022518ad9fc6635dc862331bfb78938a2b
treed4215c3f8cc02c8e67b4e658820f9ea7ee8c1956
parent97ffbeb350163479cfda2be89a8753f41cc663bb
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