Skip to content

Commit 2ed6219

Browse files
Minor: concisely construct RecipientOnionFields
See previous commit message.
1 parent 06ea38a commit 2ed6219

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
@@ -1153,11 +1153,7 @@ impl OutboundPayments {
11531153
return
11541154
},
11551155
PendingOutboundPayment::InvoiceReceived { payment_hash, retry_strategy, .. } => {
1156-
let recipient_onion = RecipientOnionFields {
1157-
payment_secret: None,
1158-
payment_metadata: None,
1159-
custom_tlvs: vec![],
1160-
};
1156+
let recipient_onion = RecipientOnionFields::spontaneous_empty();
11611157
let retry_strategy = Some(*retry_strategy);
11621158
let payment_params = Some(route_params.payment_params.clone());
11631159
let (retryable_payment, onion_session_privs) = self.create_pending_payment(

0 commit comments

Comments
 (0)