From 21b17cb30afde0d3fc8af3b4bd74c16e605b038b Mon Sep 17 00:00:00 2001 From: Longarithm Date: Thu, 6 Jun 2024 16:53:27 +0400 Subject: [PATCH] remove prints --- chain/epoch-manager/src/tests/mod.rs | 1 - core/primitives/src/types.rs | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/chain/epoch-manager/src/tests/mod.rs b/chain/epoch-manager/src/tests/mod.rs index 2a61e7c465a..971b26a8884 100644 --- a/chain/epoch-manager/src/tests/mod.rs +++ b/chain/epoch-manager/src/tests/mod.rs @@ -1054,7 +1054,6 @@ fn test_expected_chunks() { .into_iter() .collect::>() ); - println!("{:?}", epoch_info.validator_reward()); } #[test] diff --git a/core/primitives/src/types.rs b/core/primitives/src/types.rs index ad1a4cb8cd4..af982d2a836 100644 --- a/core/primitives/src/types.rs +++ b/core/primitives/src/types.rs @@ -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 }