From: Matt Corallo Date: Thu, 17 Jun 2021 20:15:39 +0000 (+0000) Subject: Clarify invoice comment noting the relevant final-cltv-expiry vals X-Git-Tag: v0.0.99~22^2 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=f87557931132fbca98fe21d30c17ebc0e601f0cf;p=rust-lightning Clarify invoice comment noting the relevant final-cltv-expiry vals --- 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