From 77b06fb235c45bb5aa20405f859325cbd8e9755f Mon Sep 17 00:00:00 2001 From: Longarithm Date: Tue, 4 Jun 2024 22:16:25 +0400 Subject: [PATCH] debug --- chain/epoch-manager/src/validator_selection.rs | 3 --- tools/state-viewer/src/epoch_info.rs | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/chain/epoch-manager/src/validator_selection.rs b/chain/epoch-manager/src/validator_selection.rs index 808711762cc..ce68db5126c 100644 --- a/chain/epoch-manager/src/validator_selection.rs +++ b/chain/epoch-manager/src/validator_selection.rs @@ -221,9 +221,6 @@ pub fn proposals_to_epoch_info( let account_id = p.account_id(); *stake_change.get_mut(account_id).unwrap() = 0; if prev_epoch_info.account_is_validator(account_id) { - if stake >= threshold { - println!("{} {}", stake, threshold); - } debug_assert!(stake < threshold); validator_kickout.insert( account_id.clone(), diff --git a/tools/state-viewer/src/epoch_info.rs b/tools/state-viewer/src/epoch_info.rs index 184e048cbff..35089c0a5a3 100644 --- a/tools/state-viewer/src/epoch_info.rs +++ b/tools/state-viewer/src/epoch_info.rs @@ -159,7 +159,7 @@ fn get_block_height_range( } // Converts a bunch of optional filtering options into a vector of EpochIds. -pub(crate) fn get_epoch_ids( +fn get_epoch_ids( epoch_selection: EpochSelection, store: Store, chain_store: &ChainStore,