Skip to content

Commit 3b6ceb4

Browse files
Minor: concisely construct RecipientOnionFields
See previous commit message.
1 parent 1309a30 commit 3b6ceb4

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lightning/src/ln/outbound_payment.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -1167,11 +1167,7 @@ impl OutboundPayments {
11671167
},
11681168
PendingOutboundPayment::InvoiceReceived { payment_hash, retry_strategy, .. } => {
11691169
let total_amount = route_params.final_value_msat;
1170-
let recipient_onion = RecipientOnionFields {
1171-
payment_secret: None,
1172-
payment_metadata: None,
1173-
custom_tlvs: vec![],
1174-
};
1170+
let recipient_onion = RecipientOnionFields::spontaneous_empty();
11751171
let retry_strategy = Some(*retry_strategy);
11761172
let payment_params = Some(route_params.payment_params.clone());
11771173
let (retryable_payment, onion_session_privs) = self.create_pending_payment(

0 commit comments

Comments
 (0)