Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions fuzz/src/chanmon_consistency.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1866,7 +1866,7 @@ impl PaymentTracker {
}],
blinded_tail: None,
}],
route_params: route_params.clone(),
route_params,
};
let onion = RecipientOnionFields::secret_only(secret, amt);
let res = source.send_payment_with_route(route, hash, onion, id);
Expand Down Expand Up @@ -1946,7 +1946,7 @@ impl PaymentTracker {
],
blinded_tail: None,
}],
route_params: route_params.clone(),
route_params,
};
let onion = RecipientOnionFields::secret_only(secret, amt);
let res = source.send_payment_with_route(route, hash, onion, id);
Expand Down
5 changes: 1 addition & 4 deletions lightning/src/ln/outbound_payment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1922,17 +1922,14 @@ impl OutboundPayments {
}))
}

// `route_params` is a required field, but is unused when sending a probe along a fixed
// path. Construct dummy parameters from the path, leaving the fee budget unset to match
// the previous behavior of not tracking one for probes.
let route_params = {
let last_hop = path.hops.last().unwrap();
let payment_params =
PaymentParameters::from_node_id(last_hop.pubkey, last_hop.cltv_expiry_delta);
RouteParameters {
payment_params,
final_value_msat: path.final_value_msat(),
max_total_routing_fee_msat: None,
max_total_routing_fee_msat: Some(path.fee_msat()),
}
};
let route = Route { paths: vec![path], route_params };
Expand Down
Loading