Skip to content

Commit 3dd53a8

Browse files
committed
f use 32 now that we decay before adding
1 parent 98633de commit 3dd53a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/routing/scoring.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -842,7 +842,7 @@ impl<L: Deref<Target = u64>, BRT: Deref<Target = HistoricalBucketRangeTracker>,
842842
}
843843
// If the total valid points is smaller than 1.0 (i.e. 32 in our fixed-point scheme),
844844
// treat it as if we were fully decayed.
845-
if total_valid_points_tracked.checked_shr(required_decays).unwrap_or(0) < 31*31 || is_fully_decayed {
845+
if total_valid_points_tracked.checked_shr(required_decays).unwrap_or(0) < 32*32 || is_fully_decayed {
846846
// If we don't have any valid points (or, once decayed, we have less than a full
847847
// point), redo the non-historical calculation with no liquidity bounds tracked and
848848
// the historical penalty multipliers.

0 commit comments

Comments
 (0)