Skip to content

Commit af149b3

Browse files
committed
f - fail AwaitingInvoice on abandon_payment
1 parent 541cee4 commit af149b3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lightning/src/ln/outbound_payment.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1490,6 +1490,11 @@ impl OutboundPayments {
14901490
}, None));
14911491
payment.remove();
14921492
}
1493+
} else if let PendingOutboundPayment::AwaitingInvoice { .. } = payment.get() {
1494+
pending_events.lock().unwrap().push_back((events::Event::InvoiceRequestFailed {
1495+
payment_id,
1496+
}, None));
1497+
payment.remove();
14931498
}
14941499
}
14951500
}

0 commit comments

Comments
 (0)