Skip to content

Commit e588f04

Browse files
fixup! store static invoice inside the PendingOutboundPayment::StaticInvoiceReceived
Signed-off-by: Vincenzo Palazzo <[email protected]>
1 parent e40919b commit e588f04

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lightning/src/ln/outbound_payment.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1203,9 +1203,9 @@ impl OutboundPayments {
12031203
},
12041204
hash_map::Entry::Vacant(_) => return Err(Bolt12PaymentError::UnexpectedInvoice),
12051205
};
1206-
let invoice = PaidInvoice::StaticInvoice(invoice.clone());
1206+
let invoice = PaidInvoice::StaticInvoice(invoice);
12071207
self.send_payment_for_bolt12_invoice_internal(
1208-
payment_id, payment_hash, Some(keysend_preimage), Some(&invoice_request), Some(&invoice), route_params,
1208+
payment_id, payment_hash, Some(keysend_preimage), Some(&invoice_request), Some(invoice), route_params,
12091209
retry_strategy, router, first_hops, inflight_htlcs, entropy_source, node_signer,
12101210
node_id_lookup, secp_ctx, best_block_height, logger, pending_events, send_payment_along_path
12111211
)

0 commit comments

Comments
 (0)