Skip to content

Commit f875579

Browse files
committed
Clarify invoice comment noting the relevant final-cltv-expiry vals
1 parent 84ac66e commit f875579

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lightning-invoice/src/lib.rs

+4
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,11 @@ pub const DEFAULT_EXPIRY_TIME: u64 = 3600;
6464

6565
/// Default minimum final CLTV expiry as defined by [BOLT 11].
6666
///
67+
/// Note that this is *not* the same value as rust-lightning's minimum CLTV expiry, which is
68+
/// provided in [`MIN_FINAL_CLTV_EXPIRY`].
69+
///
6770
/// [BOLT 11]: https://github.com/lightningnetwork/lightning-rfc/blob/master/11-payment-encoding.md
71+
/// [`MIN_FINAL_CLTV_EXPIRY`]: lightning::ln::channelmanager::MIN_FINAL_CLTV_EXPIRY
6872
pub const DEFAULT_MIN_FINAL_CLTV_EXPIRY: u64 = 18;
6973

7074
/// This function is used as a static assert for the size of `SystemTime`. If the crate fails to

0 commit comments

Comments
 (0)