mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-24 06:57:53 +01:00
Expose doc-linked constants in lightning-invoice
These constants are generally useful, and are linked from documentation, so should be exposed in any case.
This commit is contained in:
parent
27d9feda58
commit
e7974dac84
1 changed files with 2 additions and 2 deletions
|
@ -60,12 +60,12 @@ const MAX_EXPIRY_TIME: u64 = 60 * 60 * 24 * 356;
|
||||||
/// Default expiry time as defined by [BOLT 11].
|
/// Default expiry time as defined by [BOLT 11].
|
||||||
///
|
///
|
||||||
/// [BOLT 11]: https://github.com/lightningnetwork/lightning-rfc/blob/master/11-payment-encoding.md
|
/// [BOLT 11]: https://github.com/lightningnetwork/lightning-rfc/blob/master/11-payment-encoding.md
|
||||||
const DEFAULT_EXPIRY_TIME: u64 = 3600;
|
pub const DEFAULT_EXPIRY_TIME: u64 = 3600;
|
||||||
|
|
||||||
/// Default minimum final CLTV expiry as defined by [BOLT 11].
|
/// Default minimum final CLTV expiry as defined by [BOLT 11].
|
||||||
///
|
///
|
||||||
/// [BOLT 11]: https://github.com/lightningnetwork/lightning-rfc/blob/master/11-payment-encoding.md
|
/// [BOLT 11]: https://github.com/lightningnetwork/lightning-rfc/blob/master/11-payment-encoding.md
|
||||||
const DEFAULT_MIN_FINAL_CLTV_EXPIRY: u64 = 18;
|
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
|
/// This function is used as a static assert for the size of `SystemTime`. If the crate fails to
|
||||||
/// compile due to it this indicates that your system uses unexpected bounds for `SystemTime`. You
|
/// compile due to it this indicates that your system uses unexpected bounds for `SystemTime`. You
|
||||||
|
|
Loading…
Add table
Reference in a new issue