From e44868681dfcb53cafae856e0f798b61e3d90ea8 Mon Sep 17 00:00:00 2001 From: Jeffrey Czyz Date: Tue, 17 Jan 2023 17:36:03 -0600 Subject: [PATCH] Update scoring history buckets when no change Even when there is no change in min/max liquidity knowledge, tracking should still be updated to include the additional data point. --- lightning/src/routing/scoring.rs | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/lightning/src/routing/scoring.rs b/lightning/src/routing/scoring.rs index e2d110756..4e825ee16 100644 --- a/lightning/src/routing/scoring.rs +++ b/lightning/src/routing/scoring.rs @@ -1129,6 +1129,7 @@ impl, BRT: DerefMut, BRT: DerefMut, BRT: DerefMut, BRT: DerefMut, BRT: DerefMut, BRT: DerefMut>(), 42); - assert_eq!(scorer.channel_penalty_msat(42, &source, &target, usage), 2048); + assert_eq!(scorer.channel_penalty_msat(42, &source, &target, usage), 409); } #[test] -- 2.39.5