Skip to content

Commit 5b5d8e1

Browse files
committed
f - full timer tick plus link
1 parent e58a6ed commit 5b5d8e1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lightning/src/ln/channelmanager.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -4003,14 +4003,17 @@ where
40034003
/// fails or if the encoded `payment_id` is not recognized. The latter may happen once the
40044004
/// payment is no longer tracked because the payment was attempted after:
40054005
/// - an invoice for the `payment_id` was already paid,
4006-
/// - one timer tick has elapsed since initially requesting the invoice when paying an offer, or
4006+
/// - one full [timer tick] has elapsed since initially requesting the invoice when paying an
4007+
/// offer, or
40074008
/// - the refund corresponding to the invoice has already expired.
40084009
///
40094010
/// Attempting to pay the same invoice twice while the first payment is still pending will
40104011
/// result in a [`Bolt12PaymentError::DuplicateInvoice`].
40114012
///
40124013
/// Otherwise, either [`Event::PaymentSent`] or [`Event::PaymentFailed`] are used to indicate
40134014
/// whether or not the payment was successful.
4015+
///
4016+
/// [timer tick]: Self::timer_tick_occurred
40144017
pub fn send_payment_for_bolt12_invoice(&self, invoice: &Bolt12Invoice) -> Result<(), Bolt12PaymentError> {
40154018
let secp_ctx = &self.secp_ctx;
40164019
let expanded_key = &self.inbound_payment_key;

0 commit comments

Comments
 (0)