We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c95f04 commit 1ffce9fCopy full SHA for 1ffce9f
lightning/src/ln/outbound_payment.rs
@@ -890,7 +890,7 @@ impl OutboundPayments {
890
hash_map::Entry::Occupied(entry) => match entry.get() {
891
PendingOutboundPayment::AwaitingInvoice { retry_strategy, invoice_request, .. } => {
892
let invreq = invoice_request.as_ref().ok_or(Bolt12PaymentError::UnexpectedInvoice)?;
893
- if !invoice.matches_invreq(invreq) {
+ if !invoice.from_same_offer(invreq) {
894
return Err(Bolt12PaymentError::UnexpectedInvoice)
895
}
896
let amount_msat = invreq.amount_msats().ok_or(Bolt12PaymentError::UnexpectedInvoice)?;
0 commit comments