]> git.bitcoin.ninja Git - rust-lightning/commit
Handling for sign_counterparty_commitment failing during normal op
authorMatt Corallo <git@bluematt.me>
Tue, 5 Sep 2023 20:46:28 +0000 (20:46 +0000)
committerChris Waterson <waterson@gmail.com>
Wed, 1 Nov 2023 21:29:59 +0000 (14:29 -0700)
commit1da29290e7af03a5dfc207ee6a5c848a9740bd32
treeee38651d2912d854092aef08ef0e247d7c6eb6c3
parent1f399b0984d591019320459d804cbad859c608ae
Handling for sign_counterparty_commitment failing during normal op

If sign_counterparty_commitment fails (i.e. because the signer is
temporarily disconnected), this really indicates that we should
retry the message sending later, rather than force-closing the
channel (which probably won't even work if the signer is missing).

Here we add initial handling of sign_counterparty_commitment
failing during normal channel operation, setting a new flag in
`ChannelContext` which indicates we should retry sending the
commitment update later. We don't yet add any ability to do that
retry.
lightning/src/ln/channel.rs