From: Matt Corallo Date: Sun, 24 Sep 2023 02:33:55 +0000 (+0000) Subject: Fix anchor output matching X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=fda38944b68a9d992c84338fc16767c766344c66;p=rust-lightning Fix anchor output matching --- 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()); + }, _ => {}, } }