File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -1908,9 +1908,11 @@ impl<Signer: Sign> ChannelMonitorImpl<Signer> {
19081908 continue ;
19091909 }
19101910 } else if htlc. 0 . cltv_expiry > self . best_block . height ( ) + 1 {
1911- // Don't broadcast HTLC-Timeout transactions immediately as they dont' meet the
1912- // current locktime requirements on-chain. We will broadcast them when the
1913- // commitment transaction confirms automatically.
1911+ // Don't broadcast HTLC-Timeout transactions immediately as they don't meet the
1912+ // current locktime requirements on-chain. We will broadcast them in
1913+ // `block_confirmed` when `would_broadcast_at_height` returns true.
1914+ // Note that we add + 1 as transactions are broadcastable when they can be
1915+ // confirmed in the next block, not the current height.
19141916 continue ;
19151917 } else { None } ;
19161918 if let Some ( htlc_tx) = self . onchain_tx_handler . get_fully_signed_htlc_tx (
You can’t perform that action at this time.
0 commit comments