Skip to content

Commit eb7f00b

Browse files
committed
f swap doc/comment order
1 parent 4923990 commit eb7f00b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -575,12 +575,12 @@ pub(crate) const MAX_LOCAL_BREAKDOWN_TIMEOUT: u16 = 2 * 6 * 24 * 7;
575575
pub const MIN_CLTV_EXPIRY_DELTA: u16 = 6*7;
576576
pub(super) const CLTV_FAR_FAR_AWAY: u32 = 6 * 24 * 7; //TODO?
577577

578-
// Note that we fail if exactly HTLC_FAIL_BACK_BUFFER + 1 was used, so we need to add one for
579-
// any payments to succeed. Further, we don't want payments to fail if a block was found while
580-
// a payment was being routed, so we add an extra block to be safe.
581578
/// Minimum CLTV difference between the current block height and received inbound payments.
582579
/// Invoices generated for payment to us must set their `min_final_cltv_expiry` field to at least
583580
/// this value.
581+
// Note that we fail if exactly HTLC_FAIL_BACK_BUFFER + 1 was used, so we need to add one for
582+
// any payments to succeed. Further, we don't want payments to fail if a block was found while
583+
// a payment was being routed, so we add an extra block to be safe.
584584
pub const MIN_FINAL_CLTV_EXPIRY: u32 = HTLC_FAIL_BACK_BUFFER + 3;
585585

586586
// Check that our CLTV_EXPIRY is at least CLTV_CLAIM_BUFFER + ANTI_REORG_DELAY + LATENCY_GRACE_PERIOD_BLOCKS,

0 commit comments

Comments
 (0)