From b4be8dd8af8c95a56c49226ef8d53437eb8133cb Mon Sep 17 00:00:00 2001 From: Valentine Wallace Date: Tue, 2 Jul 2024 12:15:12 -0400 Subject: [PATCH] Minor: concisely construct RecipientOnionFields See previous commit message. --- lightning/src/ln/outbound_payment.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lightning/src/ln/outbound_payment.rs b/lightning/src/ln/outbound_payment.rs index 21c0de7547f..a75207b3e82 100644 --- a/lightning/src/ln/outbound_payment.rs +++ b/lightning/src/ln/outbound_payment.rs @@ -1167,11 +1167,7 @@ impl OutboundPayments { }, PendingOutboundPayment::InvoiceReceived { payment_hash, retry_strategy, .. } => { let total_amount = route_params.final_value_msat; - let recipient_onion = RecipientOnionFields { - payment_secret: None, - payment_metadata: None, - custom_tlvs: vec![], - }; + let recipient_onion = RecipientOnionFields::spontaneous_empty(); let retry_strategy = Some(*retry_strategy); let payment_params = Some(route_params.payment_params.clone()); let (retryable_payment, onion_session_privs) = self.create_pending_payment(