From fda38944b68a9d992c84338fc16767c766344c66 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Sun, 24 Sep 2023 02:33:55 +0000 Subject: [PATCH] Fix anchor output matching --- lightning/src/chain/channelmonitor.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lightning/src/chain/channelmonitor.rs b/lightning/src/chain/channelmonitor.rs index 100419acb..ee507fd09 100644 --- a/lightning/src/chain/channelmonitor.rs +++ b/lightning/src/chain/channelmonitor.rs @@ -1748,6 +1748,12 @@ impl ChannelMonitorImpl { debug_assert!(holder_delayed_output_pending.is_none()); holder_delayed_output_pending = Some(event.confirmation_threshold()); }, + OnchainEvent::MaturingOutput { + descriptor: SpendableOutputDescriptor::DelayedPaymentOutput(ref descriptor) } + if descriptor.outpoint.into_bitcoin_outpoint() == htlc_output_to_spend => { + debug_assert!(holder_delayed_output_pending.is_none()); + holder_delayed_output_pending = Some(event.confirmation_threshold()); + }, _ => {}, } } -- 2.39.5