Skip to content

Commit 1c4e845

Browse files
committed
f sp
1 parent 8adacba commit 1c4e845

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2843,13 +2843,12 @@ pub const MIN_FINAL_CLTV_EXPIRY_DELTA: u16 = HTLC_FAIL_BACK_BUFFER as u16 + 3;
28432843
// Check that our MIN_CLTV_EXPIRY_DELTA gives us enough time to get everything on chain and locked
28442844
// in with enough time left to fail the corresponding HTLC back to our inbound edge before they
28452845
// force-close on us.
2846-
// ie that if the next-hop peer fails the HTLC LATENCY_GRACE_PERIOD_BLOCKS after our
2846+
// In other words, if the next-hop peer fails the HTLC LATENCY_GRACE_PERIOD_BLOCKS after our
28472847
// CLTV_CLAIM_BUFFER (because that's how many blocks we allow them after expiry), we'll still have
28482848
// 2*MAX_BLOCKS_FOR_CONF + ANTI_REORG_DELAY left to get two transactions on chain and the second
2849-
// fully locked in before the peer force-closes on us (LATENCY_GRACE_PERIOD_BOLOCKS before the
2849+
// fully locked in before the peer force-closes on us (LATENCY_GRACE_PERIOD_BLOCKS before the
28502850
// expiry, i.e. assuming the peer force-closes right at the expiry and we're behind by
28512851
// LATENCY_GRACE_PERIOD_BLOCKS).
2852-
// second fully locked in before the peer force-closes on us.
28532852
const _CHECK_CLTV_EXPIRY_SANITY: () = assert!(
28542853
MIN_CLTV_EXPIRY_DELTA as u32 >= 2*LATENCY_GRACE_PERIOD_BLOCKS + 2*MAX_BLOCKS_FOR_CONF + ANTI_REORG_DELAY
28552854
);

0 commit comments

Comments
 (0)