File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -4381,7 +4381,7 @@ where
4381
4381
Ok(paths) => paths,
4382
4382
Err(()) => {
4383
4383
self.abandon_payment_with_reason(payment_id, PaymentFailureReason::RouteNotFound);
4384
- res = Err(Bolt12PaymentError::SendingFailed(RetryableSendFailure::RouteNotFound) );
4384
+ res = Err(Bolt12PaymentError::BlindedPathCreationFailed );
4385
4385
return NotifyOption::DoPersist
4386
4386
}
4387
4387
};
@@ -11018,6 +11018,12 @@ where
11018
11018
log_trace!($logger, "Failed paying invoice: {:?}", e);
11019
11019
InvoiceError::from_string(format!("{:?}", e))
11020
11020
},
11021
+ #[cfg(async_payments)]
11022
+ Err(Bolt12PaymentError::BlindedPathCreationFailed) => {
11023
+ let err_msg = "Failed to create a blinded path back to ourselves";
11024
+ log_trace!($logger, "{}", err_msg);
11025
+ InvoiceError::from_string(err_msg.to_string())
11026
+ },
11021
11027
Err(Bolt12PaymentError::UnexpectedInvoice)
11022
11028
| Err(Bolt12PaymentError::DuplicateInvoice)
11023
11029
| Ok(()) => return None,
Original file line number Diff line number Diff line change @@ -535,6 +535,15 @@ pub enum Bolt12PaymentError {
535
535
UnknownRequiredFeatures ,
536
536
/// The invoice was valid for the corresponding [`PaymentId`], but sending the payment failed.
537
537
SendingFailed ( RetryableSendFailure ) ,
538
+ #[ cfg( async_payments) ]
539
+ /// Failed to create a blinded path back to ourselves.
540
+ ///
541
+ /// We attempted to initiate payment to a [`StaticInvoice`] but failed to create a reply path for
542
+ /// our [`HeldHtlcAvailable`] message.
543
+ ///
544
+ /// [`StaticInvoice`]: crate::offers::static_invoice::StaticInvoice
545
+ /// [`HeldHtlcAvailable`]: crate::onion_message::async_payments::HeldHtlcAvailable
546
+ BlindedPathCreationFailed ,
538
547
}
539
548
540
549
/// Indicates that we failed to send a payment probe. Further errors may be surfaced later via
You can’t perform that action at this time.
0 commit comments