File tree 1 file changed +7
-4
lines changed
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -1739,8 +1739,12 @@ impl<Signer: WriteableEcdsaChannelSigner> ChannelMonitorImpl<Signer> {
1739
1739
htlc_spend_pending = Some ( ( event. confirmation_threshold ( ) , preimage. is_some ( ) ) ) ;
1740
1740
} ,
1741
1741
OnchainEvent :: MaturingOutput {
1742
- descriptor : SpendableOutputDescriptor :: DelayedPaymentOutput ( ref descriptor) }
1743
- if descriptor. outpoint . index as u32 == htlc_commitment_tx_output_idx => {
1742
+ descriptor : SpendableOutputDescriptor :: DelayedPaymentOutput ( _) }
1743
+ if event. transaction . as_ref ( ) . map ( |tx| tx. input . iter ( )
1744
+ . any ( |inp| Some ( inp. previous_output . txid ) == confirmed_txid &&
1745
+ inp. previous_output . vout == htlc_commitment_tx_output_idx) )
1746
+ . unwrap_or ( false )
1747
+ => {
1744
1748
debug_assert ! ( holder_delayed_output_pending. is_none( ) ) ;
1745
1749
holder_delayed_output_pending = Some ( event. confirmation_threshold ( ) ) ;
1746
1750
} ,
@@ -1852,8 +1856,7 @@ impl<Signer: WriteableEcdsaChannelSigner> ChannelMonitor<Signer> {
1852
1856
/// confirmations on the claim transaction.
1853
1857
///
1854
1858
/// Note that for `ChannelMonitors` which track a channel which went on-chain with versions of
1855
- /// LDK prior to 0.0.111, balances may not be fully captured if our counterparty broadcasted
1856
- /// a revoked state.
1859
+ /// LDK prior to 0.0.111, not all or excess balances may be included.
1857
1860
///
1858
1861
/// See [`Balance`] for additional details on the types of claimable balances which
1859
1862
/// may be returned here and their meanings.
You can’t perform that action at this time.
0 commit comments