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> {
1908
1908
continue ;
1909
1909
}
1910
1910
} 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.
1914
1916
continue ;
1915
1917
} else { None } ;
1916
1918
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