Skip to content

Commit 93ae026

Browse files
committed
f later
1 parent 95a9d76 commit 93ae026

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lightning/src/routing/scoring.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1763,7 +1763,8 @@ mod bucketed_history {
17631763

17641764
// If the total valid points is smaller than 1.0 (i.e. 32 in our fixed-point scheme),
17651765
// treat it as if we were fully decayed.
1766-
if total_valid_points_tracked.checked_shr(required_decays).unwrap_or(0) < 32*32 {
1766+
const FULLY_DECAYED: u64 = (BUCKET_FIXED_POINT_ONE * BUCKET_FIXED_POINT_ONE).into();
1767+
if total_valid_points_tracked.checked_shr(required_decays).unwrap_or(0) < FULLY_DECAYED {
17671768
return None;
17681769
}
17691770

0 commit comments

Comments
 (0)