pub struct ConsensusConfig {
pub genesis_period: Timestamp,
pub heartbeat_interval: Timestamp,
pub prune_after_blocks: u64,
pub max_staker_recursions: BlockId,
pub default_social_stake: Currency,
pub default_social_stake_period: BlockId,
}
Fields§
§genesis_period: Timestamp
§heartbeat_interval: Timestamp
§prune_after_blocks: u64
§max_staker_recursions: BlockId
Implementations§
Source§impl ConsensusConfig
impl ConsensusConfig
pub fn get_ring_buffer_length(&self) -> BlockId
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 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
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