Skip to content

Commit f1a6469

Browse files
committed
Correct docs about invoice_expiry_delta_secs panic
1 parent 6259e7a commit f1a6469

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5144,6 +5144,8 @@ impl<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelMana
51445144
/// Legacy version of [`create_inbound_payment`]. Use this method if you wish to share
51455145
/// serialized state with LDK node(s) running 0.0.103 and earlier.
51465146
///
5147+
/// May panic if `invoice_expiry_delta_secs` is greater than one year.
5148+
///
51475149
/// # Note
51485150
/// This method is deprecated and will be removed soon.
51495151
///
@@ -5184,8 +5186,6 @@ impl<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelMana
51845186
/// If you need exact expiry semantics, you should enforce them upon receipt of
51855187
/// [`PaymentReceived`].
51865188
///
5187-
/// May panic if `invoice_expiry_delta_secs` is greater than one year.
5188-
///
51895189
/// Note that invoices generated for inbound payments should have their `min_final_cltv_expiry`
51905190
/// set to at least [`MIN_FINAL_CLTV_EXPIRY`].
51915191
///
@@ -5208,6 +5208,8 @@ impl<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelMana
52085208
/// Legacy version of [`create_inbound_payment_for_hash`]. Use this method if you wish to share
52095209
/// serialized state with LDK node(s) running 0.0.103 and earlier.
52105210
///
5211+
/// May panic if `invoice_expiry_delta_secs` is greater than one year.
5212+
///
52115213
/// # Note
52125214
/// This method is deprecated and will be removed soon.
52135215
///

0 commit comments

Comments
 (0)