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=refs%2Fheads%2F2023-09-fix-anchor-missing-balance;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()); + }, _ => {}, } }