Skip to content

Commit 0c2081b

Browse files
fixup! make persistent BOLT12 invoice through PendingOutboundPayment
Signed-off-by: Vincenzo Palazzo <[email protected]>
1 parent a18ed6b commit 0c2081b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lightning/src/ln/outbound_payment.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -985,14 +985,12 @@ impl OutboundPayments {
985985
*entry.into_mut() = retryable_payment;
986986
onion_session_privs
987987
},
988-
// TODO(vincenzopalazzo): What about static invoices? There is no proof of payment with async payment because we need PTLC
989-
// so we can ingore it for now
990988
PendingOutboundPayment::StaticInvoiceReceived { .. } => {
991989
let invreq = if let PendingOutboundPayment::StaticInvoiceReceived { invoice_request, .. } = entry.remove() {
992990
invoice_request
993991
} else { unreachable!() };
994992
let (retryable_payment, onion_session_privs) = Self::create_pending_payment(
995-
payment_hash, recipient_onion.clone(), keysend_preimage, Some(invreq), None, &route,
993+
payment_hash, recipient_onion.clone(), keysend_preimage, Some(invreq), bolt12_invoice.cloned(), &route,
996994
Some(retry_strategy), payment_params, entropy_source, best_block_height
997995
);
998996
outbounds.insert(payment_id, retryable_payment);

0 commit comments

Comments
 (0)