]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Rename variable
authorJeffrey Czyz <jkczyz@gmail.com>
Fri, 14 Jun 2024 14:32:17 +0000 (09:32 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Tue, 18 Jun 2024 14:26:29 +0000 (09:26 -0500)
lightning/src/ln/outbound_payment.rs

index 0b8819aa0c6dbd47e1b3e2f692079a19526a62da..ac9eb74823ff15ac444209021399ab8443f6573f 100644 (file)
@@ -807,9 +807,11 @@ impl OutboundPayments {
                        hash_map::Entry::Vacant(_) => return Err(Bolt12PaymentError::UnexpectedInvoice),
                };
 
-               let pay_params = PaymentParameters::from_bolt12_invoice(&invoice);
+               let payment_params = PaymentParameters::from_bolt12_invoice(&invoice);
                let amount_msat = invoice.amount_msats();
-               let mut route_params = RouteParameters::from_payment_params_and_value(pay_params, amount_msat);
+               let mut route_params = RouteParameters::from_payment_params_and_value(
+                       payment_params, amount_msat
+               );
                if let Some(max_fee_msat) = max_total_routing_fee_msat {
                        route_params.max_total_routing_fee_msat = Some(max_fee_msat);
                }