Clarify comment on CHECK_CLTV_EXPIRE_SANITY_2 somewhat 2021-05-fix-cltv-diff
authorMatt Corallo <git@bluematt.me>
Thu, 6 May 2021 15:34:51 +0000 (15:34 +0000)
committerMatt Corallo <git@bluematt.me>
Thu, 6 May 2021 15:34:51 +0000 (15:34 +0000)
lightning/src/ln/channelmanager.rs

index dfcb85110f193a670d25c6054f95239f2f1d4ae3..9cff2fcfc2aed35aca74ba7e7cc836e57e074483 100644 (file)
@@ -593,7 +593,7 @@ pub const MIN_FINAL_CLTV_EXPIRY: u32 = HTLC_FAIL_BACK_BUFFER + 3;
 #[allow(dead_code)]
 const CHECK_CLTV_EXPIRY_SANITY: u32 = MIN_CLTV_EXPIRY_DELTA as u32 - LATENCY_GRACE_PERIOD_BLOCKS - CLTV_CLAIM_BUFFER - ANTI_REORG_DELAY - LATENCY_GRACE_PERIOD_BLOCKS;
 
-// Check for ability of an attacker to make us fail on-chain by delaying inbound claim. See
+// Check for ability of an attacker to make us fail on-chain by delaying an HTLC claim. See
 // ChannelMontior::would_broadcast_at_height for a description of why this is needed.
 #[deny(const_err)]
 #[allow(dead_code)]