]> git.bitcoin.ninja Git - rust-lightning/commit
Correct manual shutdown detection on channel closure
authorMatt Corallo <git@bluematt.me>
Wed, 28 Aug 2024 14:35:54 +0000 (14:35 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 28 Aug 2024 14:35:54 +0000 (14:35 +0000)
commit683aa8350ed545add81bbcbca6a9281ddeba3609
tree8753525c68d4525059aa86d0bdeea123bee98eaa
parent6a81d5d4bb894e130f753dda9a04f8016c71b8a9
Correct manual shutdown detection on channel closure

In 5e874c3dc9cf1606a3cbbccab3a0d25089a97280 we'd intended to not
reveal the dummy funding transaction in `Event::DiscardFunding`.
However, instead of looking at the channel that was just closed,
the logic only looks at any other channels which were funded as a
part of the same batch. Because manually-funded transactions
cannot currently be done for batch funding, this was actually dead
code, preventing the new changes from taking effect.
lightning/src/ln/channel.rs
lightning/src/ln/channelmanager.rs