We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95a9d76 commit 1e40b25Copy full SHA for 1e40b25
lightning/src/routing/scoring.rs
@@ -1763,7 +1763,8 @@ mod bucketed_history {
1763
1764
// If the total valid points is smaller than 1.0 (i.e. 32 in our fixed-point scheme),
1765
// treat it as if we were fully decayed.
1766
- if total_valid_points_tracked.checked_shr(required_decays).unwrap_or(0) < 32*32 {
+ const FULLY_DECAYED = BUCKET_FIXED_POINT_ONE * BUCKET_FIXED_POINT_ONE;
1767
+ if total_valid_points_tracked.checked_shr(required_decays).unwrap_or(0) < FULLY_DECAYED.into() {
1768
return None;
1769
}
1770
0 commit comments