Skip to content

Commit 31a0272

Browse files
Minor: concisely construct RecipientOnionFields
We'll basically be duplicating this handling code in an upcoming patch, so want to make it concise.
1 parent be5b1b0 commit 31a0272

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lightning/src/ln/outbound_payment.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1171,11 +1171,7 @@ impl OutboundPayments {
11711171
},
11721172
PendingOutboundPayment::InvoiceReceived { payment_hash, retry_strategy, .. } => {
11731173
let total_amount = route_params.final_value_msat;
1174-
let recipient_onion = RecipientOnionFields {
1175-
payment_secret: None,
1176-
payment_metadata: None,
1177-
custom_tlvs: vec![],
1178-
};
1174+
let recipient_onion = RecipientOnionFields::spontaneous_empty();
11791175
let retry_strategy = Some(*retry_strategy);
11801176
let payment_params = Some(route_params.payment_params.clone());
11811177
let (retryable_payment, onion_session_privs) = self.create_pending_payment(

0 commit comments

Comments
 (0)