]> git.bitcoin.ninja Git - rust-lightning/commit
event: store the outpoint when is_manual_broadcast
authorVincenzo Palazzo <vincenzopalazzodev@gmail.com>
Tue, 27 Aug 2024 08:18:28 +0000 (10:18 +0200)
committerVincenzo Palazzo <vincenzopalazzodev@gmail.com>
Tue, 27 Aug 2024 17:50:18 +0000 (19:50 +0200)
commit5e874c3dc9cf1606a3cbbccab3a0d25089a97280
tree69b0a95b2d562efb1941e02fa8534f6f0992a5c6
parentb2cdc2cb318f455ad7dc6b565b3d7e7940080b8d
event: store the outpoint when is_manual_broadcast

With [1], it's possible to specify `manual_broadcast` for
the channel funding transaction. When `is_manual_broadcast` is
set to true, the transaction in the `DiscardFunding` event is
replaced with a dummy empty transaction.

This commit checks if `is_manual_broadcast` is true and
stores the funding OutPoint in the DiscardFunding event instead.

[1] https://github.com/lightningdevkit/rust-lightning/pull/3024

Link: https://github.com/lightningdevkit/rust-lightning/issues/3164
Suggested-by: TheBlueMatt
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
lightning/src/events/mod.rs
lightning/src/ln/channelmanager.rs