]> git.bitcoin.ninja Git - rust-lightning/commit
Handle retrying sign_counterparty_commitment failures
authorMatt Corallo <git@bluematt.me>
Tue, 5 Sep 2023 22:06:53 +0000 (22:06 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 5 Sep 2023 22:09:49 +0000 (22:09 +0000)
commit97ffbeb350163479cfda2be89a8753f41cc663bb
treeaf9869d60e233d52aa903c5cc2172c8644255575
parentec9ac9b81d85f3cea36193b07737bbd6e7d8390f
Handle retrying sign_counterparty_commitment 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 initial retrying of failures, specifically
regenerating commitment updates, attempting to re-sign the
`CommitmentSigned` message, and sending it to our peers if we
succed.
lightning/src/ln/channel.rs
lightning/src/ln/channelmanager.rs