Skip to content

Commit fcc1f09

Browse files
fixup! make persistent BOLT12 invoice through PendingOutboundPayment
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
1 parent 8f5dc5e commit fcc1f09

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lightning/src/ln/outbound_payment.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -968,14 +968,12 @@ impl OutboundPayments {
968968
*entry.into_mut() = retryable_payment;
969969
onion_session_privs
970970
},
971-
// TODO(vincenzopalazzo): What about static invoices? There is no proof of payment with async payment because we need PTLC
972-
// so we can ingore it for now
973971
PendingOutboundPayment::StaticInvoiceReceived { .. } => {
974972
let invreq = if let PendingOutboundPayment::StaticInvoiceReceived { invoice_request, .. } = entry.remove() {
975973
invoice_request
976974
} else { unreachable!() };
977975
let (retryable_payment, onion_session_privs) = Self::create_pending_payment(
978-
payment_hash, recipient_onion.clone(), keysend_preimage, Some(invreq), None, &route,
976+
payment_hash, recipient_onion.clone(), keysend_preimage, Some(invreq), bolt12_invoice.cloned(), &route,
979977
Some(retry_strategy), payment_params, entropy_source, best_block_height
980978
);
981979
outbounds.insert(payment_id, retryable_payment);

0 commit comments

Comments
 (0)