Skip to content

Commit 5bf4553

Browse files
committed
f: use current time instead of invoice creation time
1 parent 048e088 commit 5bf4553

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/ln/outbound_payment.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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(ASYNC_PAYMENT_TIMEOUT_SECS));
1175+
let absolute_expiry = duration_since_epoch.saturating_add(Duration::from_secs(ASYNC_PAYMENT_TIMEOUT_SECS));
11761176

11771177
*entry.into_mut() = PendingOutboundPayment::StaticInvoiceReceived {
11781178
payment_hash,

0 commit comments

Comments
 (0)