We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 11a5a7b commit 072586eCopy full SHA for 072586e
lightning-invoice/src/payment.rs
@@ -238,6 +238,10 @@ where
238
final_value_msat: invoice.amount_milli_satoshis().or(amount_msats).unwrap(),
239
final_cltv_expiry_delta: invoice.min_final_cltv_expiry() as u32,
240
};
241
+ if has_expired(params) {
242
+ log_trace!(self.logger, "Invoice expired prior to first send for payment {}", log_bytes!(payment_hash.0));
243
+ return Err(PaymentError::Invoice("Invoice expired prior to send"));
244
+ }
245
let first_hops = self.payer.first_hops();
246
let route = self.router.find_route(
247
&payer,
0 commit comments