pub struct ConsensusConfig {
pub block_time_ms: u64,
pub max_block_size: u64,
pub max_transactions_per_block: u32,
pub min_validator_stake: u64,
pub max_validators: u32,
pub algorithm: String,
}Expand description
Consensus configuration
Fields§
§block_time_ms: u64Block time in milliseconds
max_block_size: u64Maximum block size in bytes
max_transactions_per_block: u32Maximum transactions per block
min_validator_stake: u64Minimum validator stake (in smallest TNZO unit)
max_validators: u32Maximum number of validators
algorithm: StringConsensus algorithm
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 (const: unstable) · 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 Default for ConsensusConfig
impl Default 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
impl Eq for ConsensusConfig
Source§impl PartialEq for ConsensusConfig
impl PartialEq for ConsensusConfig
Source§fn eq(&self, other: &ConsensusConfig) -> bool
fn eq(&self, other: &ConsensusConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ConsensusConfig
impl Serialize 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 UnsafeUnpin 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