pub type ConsensusManagerStateV1 = ConsensusManagerSubstate;Aliased Type§
pub struct ConsensusManagerStateV1 {
pub started: bool,
pub epoch: Epoch,
pub effective_epoch_start_milli: i64,
pub actual_epoch_start_milli: i64,
pub round: Round,
pub current_leader: Option<u8>,
}Fields§
§started: boolWhether the consensus process has started
epoch: EpochThe current epoch.
effective_epoch_start_milli: i64The effective start-time of the epoch.
This is used to calculate the effective duration, for the purpose of calculating
when to change epoch. This will typically be close to the actual_epoch_start_milli
but may differ slightly as it attempts to avoid minor systematic drift in the epoch
start time.
actual_epoch_start_milli: i64The actual start-time of the epoch. This is just saved as a sanity-check for checking divergence between actual and effective.
round: RoundThe current round in the epoch.
current_leader: Option<u8>The current leader - this is used for knowing who was the validator for the following round of transactions