pub struct BlockConfig {Show 13 fields
pub num_block_producer_seats: NumSeats,
pub num_block_producer_seats_per_shard: Vec<NumSeats>,
pub avg_hidden_validator_seats_per_shard: Vec<NumSeats>,
pub block_producer_kickout_threshold: u8,
pub chunk_producer_kickout_threshold: u8,
pub validator_max_kickout_pledge_perc: u8,
pub online_min_threshold: Rational32,
pub online_max_threshold: Rational32,
pub fishermen_threshold: Balance,
pub minimum_pledge_divisor: u64,
pub protocol_upgrade_pledge_threshold: Rational32,
pub shard_layout: ShardLayout,
pub validator_selection_config: ValidatorSelectionConfig,
}Expand description
Fields§
§num_block_producer_seats: NumSeatsNumber of seats for block producers.
num_block_producer_seats_per_shard: Vec<NumSeats>Number of seats of block producers per each shard.
Expected number of hidden validator seats per each shard.
block_producer_kickout_threshold: u8Criterion for kicking out block producers.
chunk_producer_kickout_threshold: u8Criterion for kicking out chunk producers.
validator_max_kickout_pledge_perc: u8Max ratio of validators that we can kick out in an epoch
online_min_threshold: Rational32Online minimum threshold below which validator doesn’t receive reward.
online_max_threshold: Rational32Online maximum threshold above which validator gets full reward.
fishermen_threshold: BalancePledge threshold for becoming a fisherman.
minimum_pledge_divisor: u64The minimum pledge required for staking is last seat price divided by this number.
protocol_upgrade_pledge_threshold: Rational32Threshold of pledge that needs to indicate that they ready for upgrade.
shard_layout: ShardLayoutShard layout of this epoch, may change from epoch to epoch
validator_selection_config: ValidatorSelectionConfigAdditional config for validator selection algorithm
Trait Implementations§
Source§impl Clone for BlockConfig
impl Clone for BlockConfig
Source§fn clone(&self) -> BlockConfig
fn clone(&self) -> BlockConfig
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 BlockConfig
impl Debug for BlockConfig
Source§impl PartialEq for BlockConfig
impl PartialEq for BlockConfig
impl Eq for BlockConfig
impl StructuralPartialEq for BlockConfig
Auto Trait Implementations§
impl Freeze for BlockConfig
impl RefUnwindSafe for BlockConfig
impl Send for BlockConfig
impl Sync for BlockConfig
impl Unpin for BlockConfig
impl UnwindSafe for BlockConfig
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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
Compare self to
key and return true if they are equal.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
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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