diff --git a/src/models/config/tests/mod.rs b/src/models/config/tests/mod.rs index 88e89516..bb90469d 100644 --- a/src/models/config/tests/mod.rs +++ b/src/models/config/tests/mod.rs @@ -1,6 +1,5 @@ use super::*; use crate::boc::BocRepr; -use crate::models::ShardStateUnsplit; use crate::prelude::Boc; #[cfg(not(feature = "tycho"))] @@ -336,7 +335,7 @@ fn create_config() { #[cfg(not(feature = "tycho"))] #[test] fn validator_subset() { - use crate::models::ShardIdent; + use crate::models::{ShardIdent, ShardStateUnsplit}; let master_state = BocRepr::decode::(&include_bytes!("test_state_2_master.boc")) diff --git a/src/models/shard/shard_extra.rs b/src/models/shard/shard_extra.rs index cfbd3b2b..e0fcf480 100644 --- a/src/models/shard/shard_extra.rs +++ b/src/models/shard/shard_extra.rs @@ -194,30 +194,35 @@ pub struct ValidatorBaseInfo { /// prev_config_round:uint32 /// genesis_round:uint32 /// genesis_millis:uint64 +/// prev_shuffle_mc_validators:Bool /// = ConsensusInfo; /// ``` #[derive(Default, Debug, Copy, Clone, Eq, PartialEq, Store, Load)] pub struct ConsensusInfo { /// The most recent round from which the mempool session starts. - pub config_update_round: u32, + pub vset_switch_round: u32, /// The round from which the previous mempool session was started. - pub prev_config_round: u32, + pub prev_vset_switch_round: u32, /// Mempool genesis round (affects the overlay id). pub genesis_round: u32, /// Mempool genesis generation timestamp in milliseconds (affects the overlay id). pub genesis_millis: u64, + + /// Previous state of the `shuffle_mc_validators` flags. + pub prev_shuffle_mc_validators: bool, } impl ConsensusInfo { /// Initial consensus info state. pub const ZEROSTATE: Self = Self { - config_update_round: 0, - prev_config_round: 0, + vset_switch_round: 0, + prev_vset_switch_round: 0, genesis_round: 0, genesis_millis: 0, + prev_shuffle_mc_validators: false, }; /// Returns whether this info corresponds to the zerostate info.