@@ -57,7 +57,7 @@ pub(crate) const IDEMPOTENCY_TIMEOUT_TICKS: u8 = 7;
5757#[ cfg( async_payments) ]
5858/// Relative expiration in seconds to wait for a pending outbound HTLC to a often-offline
5959/// payee to fulfill.
60- const DEFAULT_ASYNC_PAYMENT_FULFILLMENT_EXPIRY_TIME : u64 = 60 * 60 * 24 * 7 ;
60+ const ASYNC_PAYMENT_TIMEOUT_SECS : u64 = 60 * 60 * 24 * 7 ;
6161
6262/// Stores the session_priv for each part of a payment that is still pending. For versions 0.0.102
6363/// and later, also stores information for retrying the payment.
@@ -104,7 +104,7 @@ pub(crate) enum PendingOutboundPayment {
104104 invoice_request : InvoiceRequest ,
105105 static_invoice : StaticInvoice ,
106106 // Stale time expiration of how much time we will wait to the payment to fulfill.
107- // Defaults to [`DEFAULT_ASYNC_PAYMENT_FULFILLMENT_EXPIRY_TIME `].
107+ // Defaults to [`ASYNC_PAYMENT_TIMEOUT_SECS `].
108108 expiry_time : StaleExpiration ,
109109 } ,
110110 Retryable {
@@ -1172,7 +1172,7 @@ impl OutboundPayments {
11721172 abandon_with_entry ! ( entry, PaymentFailureReason :: RouteNotFound ) ;
11731173 return Err ( Bolt12PaymentError :: SendingFailed ( RetryableSendFailure :: OnionPacketSizeExceeded ) )
11741174 }
1175- let absolute_expiry = invoice. created_at ( ) . saturating_add ( Duration :: from_secs ( DEFAULT_ASYNC_PAYMENT_FULFILLMENT_EXPIRY_TIME ) ) ;
1175+ let absolute_expiry = invoice. created_at ( ) . saturating_add ( Duration :: from_secs ( ASYNC_PAYMENT_TIMEOUT_SECS ) ) ;
11761176
11771177 * entry. into_mut ( ) = PendingOutboundPayment :: StaticInvoiceReceived {
11781178 payment_hash,
0 commit comments