From f87557931132fbca98fe21d30c17ebc0e601f0cf Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Thu, 17 Jun 2021 20:15:39 +0000 Subject: [PATCH] Clarify invoice comment noting the relevant final-cltv-expiry vals --- lightning-invoice/src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lightning-invoice/src/lib.rs b/lightning-invoice/src/lib.rs index f3a1f40bb..2ce58f296 100644 --- a/lightning-invoice/src/lib.rs +++ b/lightning-invoice/src/lib.rs @@ -64,7 +64,11 @@ pub const DEFAULT_EXPIRY_TIME: u64 = 3600; /// Default minimum final CLTV expiry as defined by [BOLT 11]. /// +/// Note that this is *not* the same value as rust-lightning's minimum CLTV expiry, which is +/// provided in [`MIN_FINAL_CLTV_EXPIRY`]. +/// /// [BOLT 11]: https://github.com/lightningnetwork/lightning-rfc/blob/master/11-payment-encoding.md +/// [`MIN_FINAL_CLTV_EXPIRY`]: lightning::ln::channelmanager::MIN_FINAL_CLTV_EXPIRY pub const DEFAULT_MIN_FINAL_CLTV_EXPIRY: u64 = 18; /// This function is used as a static assert for the size of `SystemTime`. If the crate fails to -- 2.39.5