Skip to content

Commit

Permalink
remove prints
Browse files Browse the repository at this point in the history
  • Loading branch information
Longarithm committed Jun 6, 2024
1 parent afd32bb commit 21b17cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion chain/epoch-manager/src/tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1054,7 +1054,6 @@ fn test_expected_chunks() {
.into_iter()
.collect::<HashMap<_, _>>()
);
println!("{:?}", epoch_info.validator_reward());
}

#[test]
Expand Down
2 changes: 2 additions & 0 deletions core/primitives/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -997,6 +997,8 @@ pub struct ValidatorStats {
}

impl ValidatorStats {
/// Compare stats with threshold which is an expected percentage from 0 to
/// 100.
pub fn less_than(&self, threshold: u8) -> bool {
self.produced * 100 < u64::from(threshold) * self.expected
}
Expand Down

0 comments on commit 21b17cb

Please sign in to comment.