Skip to content

Commit

Permalink
f ?
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBlueMatt committed Dec 18, 2024
1 parent 32daae5 commit b6322a7
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 @@ -1898,7 +1898,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.
const FULLY_DECAYED: u16 = BUCKET_FIXED_POINT_ONE * BUCKET_FIXED_POINT_ONE * BUCKET_FIXED_POINT_ONE * BUCKET_FIXED_POINT_ONE;
const FULLY_DECAYED: u32 = BUCKET_FIXED_POINT_ONE as u32 * BUCKET_FIXED_POINT_ONE as u32 *
BUCKET_FIXED_POINT_ONE as u32 * BUCKET_FIXED_POINT_ONE as u32;
if total_valid_points_tracked < FULLY_DECAYED.into() {
return None;
}
Expand Down

0 comments on commit b6322a7

Please sign in to comment.