]> 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)
committerMatt Corallo <git@bluematt.me>
Tue, 5 Sep 2023 21:14:13 +0000 (21:14 +0000)
commit65737c6eab46a12b8abd04454c5396d643025e65
treeafbc68013ffc6351d0e18043eb7a5cfdc0949e4b
parenteb44d999aedeba6b3f102a86fc27d1dfa62a3346
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