]> git.bitcoin.ninja Git - rust-lightning/commit
Return the counterparty node_id as a part of a force-shutdown res
authorMatt Corallo <git@bluematt.me>
Wed, 10 May 2023 00:45:08 +0000 (00:45 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 30 May 2023 18:15:32 +0000 (18:15 +0000)
commit34d5f2afc46d7caf47dd85c68d570cd6091a431d
tree86645fc2fb0c370b72d6eeef78134407579e4a75
parent3ce1a5e0876bf8b6d898fc75f0f595a102634a92
Return the counterparty node_id as a part of a force-shutdown res

In the coming commits we'll need the counterparty node_id when
handling a background monitor update as we may need to resume
normal channel operation as a result. Thus, we go ahead and pipe it
through from the shutdown end, as it makes the codepaths
consistent.

Sadly, the monitor-originated shutdown case doesn't allow for a
required counterparty node_id as some versions of LDK didn't have
it present in the ChannelMonitor.
lightning/src/ln/channel.rs
lightning/src/ln/channelmanager.rs