pub struct CatchainConfig {
pub isolate_mc_validators: bool,
pub shuffle_mc_validators: bool,
pub mc_catchain_lifetime: u32,
pub shard_catchain_lifetime: u32,
pub shard_validators_lifetime: u32,
pub shard_validators_num: u32,
}Expand description
Catchain configuration params.
Fields§
§isolate_mc_validators: boolExclude masterchain validators from a validators list for a base workchain.
shuffle_mc_validators: boolChange the order of validators in the masterchain validators list.
mc_catchain_lifetime: u32Masterchain catchain session lifetime in seconds.
shard_catchain_lifetime: u32Catchain session lifetime for shards in seconds.
shard_validators_lifetime: u32Period in seconds for which the subset of validators is selected for each shard.
shard_validators_num: u32The number of validators per shard.
Trait Implementations§
Source§impl Clone for CatchainConfig
impl Clone for CatchainConfig
Source§fn clone(&self) -> CatchainConfig
fn clone(&self) -> CatchainConfig
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 CatchainConfig
impl Debug for CatchainConfig
Source§impl<'de> Deserialize<'de> for CatchainConfig
impl<'de> Deserialize<'de> for CatchainConfig
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 CatchainConfig
impl<'a> Load<'a> for CatchainConfig
Source§impl PartialEq for CatchainConfig
impl PartialEq for CatchainConfig
Source§impl Serialize for CatchainConfig
impl Serialize for CatchainConfig
Source§impl Store for CatchainConfig
impl Store for CatchainConfig
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 Copy for CatchainConfig
impl Eq for CatchainConfig
impl StructuralPartialEq for CatchainConfig
Auto Trait Implementations§
impl Freeze for CatchainConfig
impl RefUnwindSafe for CatchainConfig
impl Send for CatchainConfig
impl Sync for CatchainConfig
impl Unpin for CatchainConfig
impl UnwindSafe for CatchainConfig
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.