]> 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)
committerChris Waterson <waterson@gmail.com>
Wed, 25 Oct 2023 16:23:13 +0000 (09:23 -0700)
commit4e7c168948e76d37f8a5a74a70975d7dd7fa29ed
treed379d1179f842e911c2f5f8a3cc6fd06e8d96c38
parent8ac4804da2b7d42c23fb95ae442b644365c4ba43
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