pub struct ConsensusInfo {
pub vset_switch_round: u32,
pub prev_vset_switch_round: u32,
pub genesis_round: u32,
pub genesis_millis: u64,
pub prev_shuffle_mc_validators: bool,
}Expand description
Brief consensus bounds info.
consensus_info#_
vset_switch_round:uint32
prev_vset_switch_round:uint32
genesis_round:uint32
genesis_millis:uint64
prev_shuffle_mc_validators:Bool
= ConsensusInfo;Fields§
§vset_switch_round: u32The most recent round from which the mempool session starts.
prev_vset_switch_round: u32The round from which the previous mempool session was started.
genesis_round: u32Mempool genesis round (affects the overlay id).
genesis_millis: u64Mempool genesis generation timestamp in milliseconds (affects the overlay id).
prev_shuffle_mc_validators: boolPrevious state of the shuffle_mc_validators flags.
Implementations§
Source§impl ConsensusInfo
impl ConsensusInfo
Sourcepub fn is_zerostate(&self) -> bool
pub fn is_zerostate(&self) -> bool
Returns whether this info corresponds to the zerostate info.
Trait Implementations§
Source§impl Clone for ConsensusInfo
impl Clone for ConsensusInfo
Source§fn clone(&self) -> ConsensusInfo
fn clone(&self) -> ConsensusInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConsensusInfo
impl Debug for ConsensusInfo
Source§impl Default for ConsensusInfo
impl Default for ConsensusInfo
Source§fn default() -> ConsensusInfo
fn default() -> ConsensusInfo
Returns the “default value” for a type. Read more
Source§impl<'tlb> Load<'tlb> for ConsensusInfo
impl<'tlb> Load<'tlb> for ConsensusInfo
Source§impl PartialEq for ConsensusInfo
impl PartialEq for ConsensusInfo
Source§impl Store for ConsensusInfo
impl Store for ConsensusInfo
Source§fn store_into(
&self,
__builder: &mut CellBuilder,
__context: &mut dyn CellContext,
) -> Result<(), Error>
fn store_into( &self, __builder: &mut CellBuilder, __context: &mut dyn CellContext, ) -> Result<(), Error>
Tries to store itself into the cell builder.
impl Copy for ConsensusInfo
impl Eq for ConsensusInfo
impl StructuralPartialEq for ConsensusInfo
Auto Trait Implementations§
impl Freeze for ConsensusInfo
impl RefUnwindSafe for ConsensusInfo
impl Send for ConsensusInfo
impl Sync for ConsensusInfo
impl Unpin for ConsensusInfo
impl UnwindSafe for ConsensusInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compares
self to key and returns true if they are equal.