Skip to content

Commit

Permalink
Minor: concisely construct RecipientOnionFields
Browse files Browse the repository at this point in the history
See previous commit message.
  • Loading branch information
valentinewallace committed Jul 10, 2024
1 parent 1309a30 commit 3b6ceb4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lightning/src/ln/outbound_payment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 3b6ceb4

Please sign in to comment.