]> 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, 25 Oct 2023 16:23:13 +0000 (09:23 -0700)
commitd5db1fb916bf58020dc78fe44ce195884e541cac
tree55150e52d1ed7c6acb7e34cfa3e751acf9b8bc6d
parent2d9344481ca340e3b6ad1663361fc117392c601f
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