]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Fix anchor output matching 2023-09-fix-anchor-missing-balance
authorMatt Corallo <git@bluematt.me>
Sun, 24 Sep 2023 02:33:55 +0000 (02:33 +0000)
committerMatt Corallo <git@bluematt.me>
Sun, 24 Sep 2023 02:39:14 +0000 (02:39 +0000)
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());
+                               },
                                _ => {},
                        }
                }