From 915e30f20b076c1ebda8579d068002f0da629d47 Mon Sep 17 00:00:00 2001 From: Erwan Or Date: Thu, 21 Mar 2024 21:51:40 -0400 Subject: [PATCH] staking: fix rebase imports --- .../component/validator_handler/validator_manager.rs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/crates/core/component/stake/src/component/validator_handler/validator_manager.rs b/crates/core/component/stake/src/component/validator_handler/validator_manager.rs index 57b6dd92c6..58780c9012 100644 --- a/crates/core/component/stake/src/component/validator_handler/validator_manager.rs +++ b/crates/core/component/stake/src/component/validator_handler/validator_manager.rs @@ -1,22 +1,19 @@ use { - super::{validator_store::ValidatorPoolTracker, ValidatorDataRead, ValidatorDataWrite}, crate::{ component::{ metrics, stake::{ConsensusIndexRead, ConsensusIndexWrite, RateDataWrite}, + validator_handler::{ + validator_store::ValidatorPoolTracker, ValidatorDataRead, ValidatorDataWrite, + }, StateReadExt as _, StateWriteExt as _, }, rate::{BaseRateData, RateData}, state_key, validator::{self, BondingState::*, State, State::*, Validator}, DelegationToken, IdentityKey, Penalty, Uptime, - - component::{ - metrics, - stake::{ConsensusIndexRead, ConsensusIndexWrite, RateDataWrite}, - validator_handler::ValidatorDataWrite, }, - anyhow::Result, + anyhow::{ensure, Result}, async_trait::async_trait, cnidarium::StateWrite, futures::StreamExt as _, @@ -24,6 +21,7 @@ use { penumbra_num::Amount, penumbra_proto::StateWriteProto, penumbra_sct::component::clock::{EpochManager, EpochRead}, + penumbra_sct::component::StateReadExt as _, penumbra_shielded_pool::component::AssetRegistry, sha2::{Digest as _, Sha256}, std::collections::BTreeMap,