Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Longarithm committed Jun 4, 2024
1 parent 9784d27 commit 77b06fb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions chain/epoch-manager/src/validator_selection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
2 changes: 1 addition & 1 deletion tools/state-viewer/src/epoch_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 77b06fb

Please sign in to comment.