]> git.bitcoin.ninja Git - rust-lightning/commit
Handle retrying sign_counterparty_commitment inb funding failures
authorMatt Corallo <git@bluematt.me>
Tue, 5 Sep 2023 22:21:04 +0000 (22:21 +0000)
committerChris Waterson <waterson@gmail.com>
Wed, 1 Nov 2023 22:24:20 +0000 (15:24 -0700)
commit4278afc9aa73c1ce4f2422b6ada6e470e6e2213e
treeb4c6354b9a356f9cd4bd4cf29edb824ca9441b2b
parent8d01309555097d361bc0f9b03e99e4f9b7a73d90
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