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 duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConsensusConfig
impl Debug for ConsensusConfig
Source§impl<'de> Deserialize<'de> for ConsensusConfig
impl<'de> Deserialize<'de> for ConsensusConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'a> Load<'a> for ConsensusConfig
impl<'a> Load<'a> for ConsensusConfig
Source§impl PartialEq for ConsensusConfig
impl PartialEq for ConsensusConfig
Source§impl Serialize for ConsensusConfig
impl Serialize for ConsensusConfig
Source§impl Store for ConsensusConfig
impl Store for ConsensusConfig
Source§fn store_into(
&self,
builder: &mut CellBuilder,
_: &dyn CellContext,
) -> Result<(), Error>
fn store_into( &self, builder: &mut CellBuilder, _: &dyn CellContext, ) -> Result<(), Error>
Tries to store itself into the cell builder.
impl Eq for ConsensusConfig
impl StructuralPartialEq for ConsensusConfig
Auto Trait Implementations§
impl Freeze for ConsensusConfig
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
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.