]> git.bitcoin.ninja Git - rust-lightning/commit
Handle sign_counterparty_commitment failing during outb funding
authorMatt Corallo <git@bluematt.me>
Tue, 5 Sep 2023 21:06:22 +0000 (21:06 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 5 Sep 2023 22:09:49 +0000 (22:09 +0000)
commit4ee37a9b86a94853d83cf1ad0c0bd1f462a54659
tree1b45fc3f8a99ff9d92b06348c758d84071cfdcf7
parent65737c6eab46a12b8abd04454c5396d643025e65
Handle sign_counterparty_commitment failing during outb funding

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).

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