Skip to content

Commit b7bc634

Browse files
committed
f reword docs on expiry val suggested
1 parent 259e6d0 commit b7bc634

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3458,6 +3458,10 @@ impl<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelMana
34583458
///
34593459
/// `invoice_expiry_delta_secs` describes the number of seconds that the invoice is valid for
34603460
/// in excess of the current time. This should roughly match the expiry time set in the invoice.
3461+
/// After this many seconds, we will remove the inbound payment, resulting in any attempts to
3462+
/// pay the invoice failing. The BOLT spec suggests 7,200 secs as a default validity time for
3463+
/// invoices when no timeout is set.
3464+
///
34613465
/// Note that we use block header time to time-out pending inbound payments (with some margin
34623466
/// to compensate for the inaccuracy of block header timestamps). Thus, in practice we will
34633467
/// accept a payment and generate a [`PaymentReceived`] event for some time after the expiry.

0 commit comments

Comments
 (0)