Skip to content

Commit 1ffce9f

Browse files
f s/matches_invreq/from_same_offer
1 parent 0c95f04 commit 1ffce9f

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
@@ -890,7 +890,7 @@ impl OutboundPayments {
890890
hash_map::Entry::Occupied(entry) => match entry.get() {
891891
PendingOutboundPayment::AwaitingInvoice { retry_strategy, invoice_request, .. } => {
892892
let invreq = invoice_request.as_ref().ok_or(Bolt12PaymentError::UnexpectedInvoice)?;
893-
if !invoice.matches_invreq(invreq) {
893+
if !invoice.from_same_offer(invreq) {
894894
return Err(Bolt12PaymentError::UnexpectedInvoice)
895895
}
896896
let amount_msat = invreq.amount_msats().ok_or(Bolt12PaymentError::UnexpectedInvoice)?;

0 commit comments

Comments
 (0)