Fix anchor output matching
[rust-lightning] / lightning / src / chain / channelmonitor.rs
index 100419acbab170b4bb69ad20b8908bbbc671aff4..ee507fd0961c039328d82c87a5b72afa5ff1d8d0 100644 (file)
@@ -1748,6 +1748,12 @@ impl<Signer: WriteableEcdsaChannelSigner> ChannelMonitorImpl<Signer> {
                                        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());
+                               },
                                _ => {},
                        }
                }