From: Jeffrey Czyz Date: Wed, 2 Mar 2022 00:44:30 +0000 (-0800) Subject: Correct docs about invoice_expiry_delta_secs panic X-Git-Tag: v0.0.106~26^2 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=f1a6469a0abd402bcd55cd38cc1aa2e32c3b5325;p=rust-lightning Correct docs about invoice_expiry_delta_secs panic --- diff --git a/lightning/src/ln/channelmanager.rs b/lightning/src/ln/channelmanager.rs index 674977fa..139a0be4 100644 --- a/lightning/src/ln/channelmanager.rs +++ b/lightning/src/ln/channelmanager.rs @@ -5144,6 +5144,8 @@ impl ChannelMana /// Legacy version of [`create_inbound_payment`]. Use this method if you wish to share /// serialized state with LDK node(s) running 0.0.103 and earlier. /// + /// May panic if `invoice_expiry_delta_secs` is greater than one year. + /// /// # Note /// This method is deprecated and will be removed soon. /// @@ -5184,8 +5186,6 @@ impl ChannelMana /// If you need exact expiry semantics, you should enforce them upon receipt of /// [`PaymentReceived`]. /// - /// May panic if `invoice_expiry_delta_secs` is greater than one year. - /// /// Note that invoices generated for inbound payments should have their `min_final_cltv_expiry` /// set to at least [`MIN_FINAL_CLTV_EXPIRY`]. /// @@ -5208,6 +5208,8 @@ impl ChannelMana /// Legacy version of [`create_inbound_payment_for_hash`]. Use this method if you wish to share /// serialized state with LDK node(s) running 0.0.103 and earlier. /// + /// May panic if `invoice_expiry_delta_secs` is greater than one year. + /// /// # Note /// This method is deprecated and will be removed soon. ///