From 20ef21798510c64f1a40fc040f7a907a4e62ab99 Mon Sep 17 00:00:00 2001 From: Jeffrey Czyz Date: Tue, 12 Nov 2024 12:28:52 -0600 Subject: [PATCH] Expand Bolt11InvoiceParameters docs for no-std use --- lightning/src/ln/channelmanager.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lightning/src/ln/channelmanager.rs b/lightning/src/ln/channelmanager.rs index 61c5958ac..d4547be8f 100644 --- a/lightning/src/ln/channelmanager.rs +++ b/lightning/src/ln/channelmanager.rs @@ -9360,7 +9360,8 @@ pub struct Bolt11InvoiceParameters { /// [`DEFAULT_EXPIRY_TIME`] by default. /// /// The creation time used is the duration since the Unix epoch for `std` builds. For non-`std` - /// builds, the highest block timestamp seen is used instead. + /// builds, the highest block timestamp seen is used instead. In the latter case, use a long + /// enough expiry to account for the average block time. pub invoice_expiry_delta_secs: Option, /// The minimum `cltv_expiry` for the last HTLC in the route. If not set, will use -- 2.39.5