Skip to content

Commit e7974da

Browse files
committed
Expose doc-linked constants in lightning-invoice
These constants are generally useful, and are linked from documentation, so should be exposed in any case.
1 parent 27d9fed commit e7974da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lightning-invoice/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@ const MAX_EXPIRY_TIME: u64 = 60 * 60 * 24 * 356;
6060
/// Default expiry time as defined by [BOLT 11].
6161
///
6262
/// [BOLT 11]: https://github.com/lightningnetwork/lightning-rfc/blob/master/11-payment-encoding.md
63-
const DEFAULT_EXPIRY_TIME: u64 = 3600;
63+
pub const DEFAULT_EXPIRY_TIME: u64 = 3600;
6464

6565
/// Default minimum final CLTV expiry as defined by [BOLT 11].
6666
///
6767
/// [BOLT 11]: https://github.com/lightningnetwork/lightning-rfc/blob/master/11-payment-encoding.md
68-
const DEFAULT_MIN_FINAL_CLTV_EXPIRY: u64 = 18;
68+
pub const DEFAULT_MIN_FINAL_CLTV_EXPIRY: u64 = 18;
6969

7070
/// This function is used as a static assert for the size of `SystemTime`. If the crate fails to
7171
/// compile due to it this indicates that your system uses unexpected bounds for `SystemTime`. You

0 commit comments

Comments
 (0)