Struct everscale_types::models::config::ConsensusConfig
source · pub struct ConsensusConfig {
pub new_catchain_ids: bool,
pub round_candidates: NonZeroU32,
pub next_candidate_delay_ms: u32,
pub consensus_timeout_ms: u32,
pub fast_attempts: u32,
pub attempt_duration: u32,
pub catchain_max_deps: u32,
pub max_block_bytes: u32,
pub max_collated_bytes: u32,
}Expand description
Consensus configuration params.
Fields§
§new_catchain_ids: boolAllow new catchain ids.
round_candidates: NonZeroU32Number of block candidates per round.
next_candidate_delay_ms: u32Delay in seconds before proposing a new candidate.
consensus_timeout_ms: u32Catchain processing timeout in seconds.
fast_attempts: u32Maximum number of attempts per round.
attempt_duration: u32Duration of a round attempt in seconds.
catchain_max_deps: u32The maximum number of dependencies to merge.
max_block_bytes: u32The maximum block size in bytes.
max_collated_bytes: u32THe maximum size of a collated data in bytes.
Trait Implementations§
source§impl Clone for ConsensusConfig
impl Clone for ConsensusConfig
source§fn clone(&self) -> ConsensusConfig
fn clone(&self) -> ConsensusConfig
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 ConsensusConfig
impl Debug for ConsensusConfig
source§impl<'a> Load<'a> for ConsensusConfig
impl<'a> Load<'a> for ConsensusConfig
source§impl PartialEq<ConsensusConfig> for ConsensusConfig
impl PartialEq<ConsensusConfig> for ConsensusConfig
source§fn eq(&self, other: &ConsensusConfig) -> bool
fn eq(&self, other: &ConsensusConfig) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Store for ConsensusConfig
impl Store for ConsensusConfig
source§fn store_into(
&self,
builder: &mut CellBuilder,
_: &mut dyn Finalizer
) -> Result<(), Error>
fn store_into( &self, builder: &mut CellBuilder, _: &mut dyn Finalizer ) -> Result<(), Error>
Tries to store itself into the cell builder.
impl Eq for ConsensusConfig
impl StructuralEq for ConsensusConfig
impl StructuralPartialEq for ConsensusConfig
Auto Trait Implementations§
impl RefUnwindSafe for ConsensusConfig
impl Send for ConsensusConfig
impl Sync for ConsensusConfig
impl Unpin for ConsensusConfig
impl UnwindSafe for ConsensusConfig
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