Struct everscale_types::models::config::ValidatorSet
source · pub struct ValidatorSet {
pub utime_since: u32,
pub utime_until: u32,
pub main: NonZeroU16,
pub total_weight: u64,
pub list: Vec<ValidatorDescription>,
}Expand description
Validator set.
Fields§
§utime_since: u32Unix timestamp from which this set will be active.
utime_until: u32Unix timestamp until which this set will be active.
main: NonZeroU16The number of masterchain validators.
total_weight: u64Total validators weight.
list: Vec<ValidatorDescription>Validators.
Implementations§
source§impl ValidatorSet
impl ValidatorSet
sourcepub fn compute_subset(
&self,
shard_ident: ShardIdent,
cc_config: &CatchainConfig,
cc_seqno: u32
) -> Option<(Vec<ValidatorDescription>, u32)>
pub fn compute_subset( &self, shard_ident: ShardIdent, cc_config: &CatchainConfig, cc_seqno: u32 ) -> Option<(Vec<ValidatorDescription>, u32)>
Compoutes a validator subset using a zero seed.
sourcepub fn compute_subset_hash_short(
subset: &[ValidatorDescription],
cc_seqno: u32
) -> u32
pub fn compute_subset_hash_short( subset: &[ValidatorDescription], cc_seqno: u32 ) -> u32
Compoutes a validator subset short hash.
Trait Implementations§
source§impl Clone for ValidatorSet
impl Clone for ValidatorSet
source§fn clone(&self) -> ValidatorSet
fn clone(&self) -> ValidatorSet
Returns a copy 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 ValidatorSet
impl Debug for ValidatorSet
source§impl<'a> Load<'a> for ValidatorSet
impl<'a> Load<'a> for ValidatorSet
source§impl PartialEq<ValidatorSet> for ValidatorSet
impl PartialEq<ValidatorSet> for ValidatorSet
source§fn eq(&self, other: &ValidatorSet) -> bool
fn eq(&self, other: &ValidatorSet) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Store for ValidatorSet
impl Store for ValidatorSet
source§fn store_into(
&self,
builder: &mut CellBuilder,
finalizer: &mut dyn Finalizer
) -> Result<(), Error>
fn store_into( &self, builder: &mut CellBuilder, finalizer: &mut dyn Finalizer ) -> Result<(), Error>
Tries to store itself into the cell builder.
impl Eq for ValidatorSet
impl StructuralEq for ValidatorSet
impl StructuralPartialEq for ValidatorSet
Auto Trait Implementations§
impl RefUnwindSafe for ValidatorSet
impl Send for ValidatorSet
impl Sync for ValidatorSet
impl Unpin for ValidatorSet
impl UnwindSafe for ValidatorSet
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