From 6b448513107da97917a724f86550d8324ef04eee Mon Sep 17 00:00:00 2001 From: Jeffrey Czyz Date: Tue, 25 Jan 2022 11:41:47 -0600 Subject: [PATCH] f - WIP: attempt to fix failing tests --- lightning/src/routing/router.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightning/src/routing/router.rs b/lightning/src/routing/router.rs index a0fafc34..45244f53 100644 --- a/lightning/src/routing/router.rs +++ b/lightning/src/routing/router.rs @@ -1222,7 +1222,7 @@ where L::Target: Logger { let params = ChannelUseParameters { amount_msat: final_value_msat, inflight_htlc_msat: 0, - fees_msat: aggregate_next_hops_fee_msat, + fees_msat: cmp::max(aggregate_next_hops_fee_msat, aggregate_next_hops_path_htlc_minimum_msat), effective_capacity_msat: candidate.effective_capacity().as_msat(), }; let channel_cost = scorer.channel_cost(hop.short_channel_id, &source, &target, params); -- 2.30.2