Skip to content

Commit 74b5d58

Browse files
committed
f fix broadcast-check comment
1 parent e0e7bbd commit 74b5d58

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lightning/src/chain/channelmonitor.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1907,9 +1907,11 @@ impl<Signer: Sign> ChannelMonitorImpl<Signer> {
19071907
continue;
19081908
}
19091909
} else if htlc.0.cltv_expiry > self.best_block.height() + 1 {
1910-
// Don't broadcast HTLC-Timeout transactions immediately as they dont' meet the
1911-
// current locktime requirements on-chain. We will broadcast them when the
1912-
// commitment transaction confirms automatically.
1910+
// Don't broadcast HTLC-Timeout transactions immediately as they don't meet the
1911+
// current locktime requirements on-chain. We will broadcast them in
1912+
// `block_confirmed` when `would_broadcast_at_height` returns true.
1913+
// Note that we add + 1 as transactions are broadcastable when they can be
1914+
// confirmed in the next block, not the current height.
19131915
continue;
19141916
} else { None };
19151917
if let Some(htlc_tx) = self.onchain_tx_handler.get_fully_signed_htlc_tx(

0 commit comments

Comments
 (0)