radix_engine/blueprints/consensus_manager/events/
consensus_manager.rs

1use crate::blueprints::consensus_manager::ActiveValidatorSet;
2use crate::internal_prelude::*;
3
4#[derive(Debug, Clone, ScryptoSbor, ScryptoEvent, PartialEq, Eq)]
5pub struct RoundChangeEvent {
6    pub round: Round,
7}
8
9#[derive(Debug, Clone, ScryptoSbor, ScryptoEvent, PartialEq, Eq)]
10pub struct EpochChangeEvent {
11    /// The *new* epoch's number.
12    pub epoch: Epoch,
13    /// The *new* epoch's validator set.
14    pub validator_set: ActiveValidatorSet,
15    /// A mapping of protocol version name to a total stake (using the *new* epoch's validator set)
16    /// that has signalled the readiness for the given protocol update.
17    /// The mapping only contains entries with associated stake of at least 10%
18    /// of the total stake (in the *new* epoch's validator set).
19    pub significant_protocol_update_readiness: IndexMap<String, Decimal>,
20}