Skip to content

Commit

Permalink
f later
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBlueMatt committed Sep 8, 2023
1 parent 95a9d76 commit 1e40b25
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lightning/src/routing/scoring.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1763,7 +1763,8 @@ mod bucketed_history {

// If the total valid points is smaller than 1.0 (i.e. 32 in our fixed-point scheme),
// treat it as if we were fully decayed.
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;
if total_valid_points_tracked.checked_shr(required_decays).unwrap_or(0) < FULLY_DECAYED.into() {
return None;
}

Expand Down

0 comments on commit 1e40b25

Please sign in to comment.