File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -575,12 +575,12 @@ pub(crate) const MAX_LOCAL_BREAKDOWN_TIMEOUT: u16 = 2 * 6 * 24 * 7;
575
575
pub const MIN_CLTV_EXPIRY_DELTA : u16 = 6 * 7 ;
576
576
pub ( super ) const CLTV_FAR_FAR_AWAY : u32 = 6 * 24 * 7 ; //TODO?
577
577
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.
581
578
/// Minimum CLTV difference between the current block height and received inbound payments.
582
579
/// Invoices generated for payment to us must set their `min_final_cltv_expiry` field to at least
583
580
/// 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.
584
584
pub const MIN_FINAL_CLTV_EXPIRY : u32 = HTLC_FAIL_BACK_BUFFER + 3 ;
585
585
586
586
// Check that our CLTV_EXPIRY is at least CLTV_CLAIM_BUFFER + ANTI_REORG_DELAY + LATENCY_GRACE_PERIOD_BLOCKS,
You can’t perform that action at this time.
0 commit comments