Skip to content

Commit 2c57089

Browse files
committed
f change min valud as we always decay after adding, so min is 31*31
1 parent 50a4184 commit 2c57089

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/routing/scoring.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -834,7 +834,7 @@ impl<L: Deref<Target = u64>, BRT: Deref<Target = HistoricalBucketRangeTracker>,
834834
if max_bucket.checked_shr(decays).unwrap_or(0) > 0 { is_fully_decayed = false; }
835835
}
836836
}
837-
if total_valid_points_tracked.checked_shr(decays).unwrap_or(0) < 32*32 || is_fully_decayed {
837+
if total_valid_points_tracked.checked_shr(decays).unwrap_or(0) < 31*31 || is_fully_decayed {
838838
// If we don't have any valid points (or, once decayed, we have less than a full
839839
// point), redo the non-historical calculation with no liquidity bounds tracked and
840840
// the historical penalty multipliers.

0 commit comments

Comments
 (0)