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 1e40b25 commit a335c27Copy full SHA for a335c27
lightning/src/routing/scoring.rs
@@ -1763,7 +1763,7 @@ 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
- const FULLY_DECAYED = BUCKET_FIXED_POINT_ONE * BUCKET_FIXED_POINT_ONE;
+ const FULLY_DECAYED: u16 = 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
}
0 commit comments