From: Jeffrey Czyz Date: Tue, 25 Jan 2022 17:41:47 +0000 (-0600) Subject: f - WIP: attempt to fix failing tests X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=6b448513107da97917a724f86550d8324ef04eee;p=rust-lightning f - WIP: attempt to fix failing tests --- diff --git a/lightning/src/routing/router.rs b/lightning/src/routing/router.rs index a0fafc342..45244f53e 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);