Skip to content

Commit 52e2b2f

Browse files
committed
f - fix avoids_saturating_channels
1 parent 8a3c465 commit 52e2b2f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lightning/src/routing/router.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7392,9 +7392,12 @@ mod tests {
73927392
.unwrap();
73937393
let random_seed_bytes = [42; 32];
73947394

7395-
// 100,000 sats is less than the available liquidity on each channel, set above.
7395+
// 75,000 sats is less than the available liquidity on each channel, set above, when
7396+
// applying max_channel_saturation_power_of_half. This value also ensures the cost of paths
7397+
// considered when applying max_channel_saturation_power_of_half is less than the cost of
7398+
// those when it is not applied.
73967399
let route_params = RouteParameters::from_payment_params_and_value(
7397-
payment_params, 100_000_000);
7400+
payment_params, 75_000_000);
73987401
let route = get_route(&our_id, &route_params, &network_graph.read_only(), None,
73997402
Arc::clone(&logger), &scorer, &ProbabilisticScoringFeeParameters::default(), &random_seed_bytes).unwrap();
74007403
assert_eq!(route.paths.len(), 2);

0 commit comments

Comments
 (0)