pub struct StateUpdateContext {
pub mc_block_id: BlockId,
pub mc_block_chain_time: u64,
pub top_processed_to_anchor_id: MempoolAnchorId,
pub consensus_info: ConsensusInfo,
pub consensus_config: ConsensusConfig,
pub shuffle_validators: bool,
pub prev_validator_set: Option<(HashBytes, Arc<ValidatorSet>)>,
pub current_validator_set: (HashBytes, Arc<ValidatorSet>),
pub next_validator_set: Option<(HashBytes, Arc<ValidatorSet>)>,
}Fields§
§mc_block_id: BlockId§mc_block_chain_time: u64§top_processed_to_anchor_id: MempoolAnchorId§consensus_info: ConsensusInfo§consensus_config: ConsensusConfig§shuffle_validators: bool§prev_validator_set: Option<(HashBytes, Arc<ValidatorSet>)>§current_validator_set: (HashBytes, Arc<ValidatorSet>)§next_validator_set: Option<(HashBytes, Arc<ValidatorSet>)>Implementations§
Source§impl StateUpdateContext
impl StateUpdateContext
Sourcepub fn vid(&self) -> VSetsId<'_>
pub fn vid(&self) -> VSetsId<'_>
equality by vid means all contained and derived v(sub)sets are the same
Sourcepub fn prev_v_set(&self) -> Vec<PeerId>
pub fn prev_v_set(&self) -> Vec<PeerId>
Preserves blockchain config peer order to pass into mempool
Sourcepub fn curr_v_set(&self) -> Vec<PeerId>
pub fn curr_v_set(&self) -> Vec<PeerId>
Preserves blockchain config peer order to pass into mempool
Sourcepub fn next_v_set(&self) -> Vec<PeerId>
pub fn next_v_set(&self) -> Vec<PeerId>
Preserves blockchain config peer order to pass into mempool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StateUpdateContext
impl RefUnwindSafe for StateUpdateContext
impl Send for StateUpdateContext
impl Sync for StateUpdateContext
impl Unpin for StateUpdateContext
impl UnsafeUnpin for StateUpdateContext
impl UnwindSafe for StateUpdateContext
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more