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;
2843
2843
// Check that our MIN_CLTV_EXPIRY_DELTA gives us enough time to get everything on chain and locked
2844
2844
// in with enough time left to fail the corresponding HTLC back to our inbound edge before they
2845
2845
// 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
2847
2847
// CLTV_CLAIM_BUFFER (because that's how many blocks we allow them after expiry), we'll still have
2848
2848
// 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
2850
2850
// expiry, i.e. assuming the peer force-closes right at the expiry and we're behind by
2851
2851
// LATENCY_GRACE_PERIOD_BLOCKS).
2852
- // second fully locked in before the peer force-closes on us.
2853
2852
const _CHECK_CLTV_EXPIRY_SANITY: () = assert!(
2854
2853
MIN_CLTV_EXPIRY_DELTA as u32 >= 2*LATENCY_GRACE_PERIOD_BLOCKS + 2*MAX_BLOCKS_FOR_CONF + ANTI_REORG_DELAY
2855
2854
);
You can’t perform that action at this time.
0 commit comments