File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff 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.
28532852const _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);
You can’t perform that action at this time.
0 commit comments