From: Jeffrey Czyz Date: Tue, 17 Jan 2023 23:36:03 +0000 (-0600) Subject: Update scoring history buckets when no change X-Git-Tag: v0.0.114~1^2~2 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=e44868681dfcb53cafae856e0f798b61e3d90ea8;p=rust-lightning 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. --- 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]