Skip to content

Commit 756bcbc

Browse files
Merge pull request #1341 from jkczyz/2022-03-expiry-time-panic
Correct docs about invoice_expiry_delta_secs panic
2 parents e6024ab + f1a6469 commit 756bcbc

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
@@ -5145,6 +5145,8 @@ impl<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelMana
51455145
/// Legacy version of [`create_inbound_payment`]. Use this method if you wish to share
51465146
/// serialized state with LDK node(s) running 0.0.103 and earlier.
51475147
///
5148+
/// May panic if `invoice_expiry_delta_secs` is greater than one year.
5149+
///
51485150
/// # Note
51495151
/// This method is deprecated and will be removed soon.
51505152
///
@@ -5185,8 +5187,6 @@ impl<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelMana
51855187
/// If you need exact expiry semantics, you should enforce them upon receipt of
51865188
/// [`PaymentReceived`].
51875189
///
5188-
/// May panic if `invoice_expiry_delta_secs` is greater than one year.
5189-
///
51905190
/// Note that invoices generated for inbound payments should have their `min_final_cltv_expiry`
51915191
/// set to at least [`MIN_FINAL_CLTV_EXPIRY`].
51925192
///
@@ -5209,6 +5209,8 @@ impl<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelMana
52095209
/// Legacy version of [`create_inbound_payment_for_hash`]. Use this method if you wish to share
52105210
/// serialized state with LDK node(s) running 0.0.103 and earlier.
52115211
///
5212+
/// May panic if `invoice_expiry_delta_secs` is greater than one year.
5213+
///
52125214
/// # Note
52135215
/// This method is deprecated and will be removed soon.
52145216
///

0 commit comments

Comments
 (0)