From 79c6b3af46089d5fee815464f716ae194bace2aa Mon Sep 17 00:00:00 2001 From: Jeffrey Czyz Date: Sun, 27 Aug 2023 08:53:10 -0500 Subject: [PATCH] Decay liquidity history buckets appropriately. e44868681dfcb53cafae856e0f798b61e3d90ea8 changed the procedure to calling update_history_buckets such that the last_updated time may have had been modified already. Thus, the history buckets were not actually decayed inside calls to update_history_buckets. Fix this by separating buckets decaying from updating. --- lightning/src/routing/scoring.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lightning/src/routing/scoring.rs b/lightning/src/routing/scoring.rs index 75dae72248b..db1361f25ae 100644 --- a/lightning/src/routing/scoring.rs +++ b/lightning/src/routing/scoring.rs @@ -1195,13 +1195,15 @@ impl, BRT: DerefMut, BRT: DerefMut, BRT: DerefMut