pub struct ParliaConfig {
pub period: Option<u64>,
pub epoch: Option<u64>,
}
Expand description
Consensus configuration for Parlia.
Parlia is the consensus engine for BNB Smart Chain. For the general introduction: https://docs.bnbchain.org/docs/learn/consensus/ For the specification: https://github.com/bnb-chain/bsc/blob/master/params/config.go#L558
Fields§
§period: Option<u64>
Number of seconds between blocks to enforce.
epoch: Option<u64>
Epoch length to update validator set.
Trait Implementations§
source§impl Clone for ParliaConfig
impl Clone for ParliaConfig
source§fn clone(&self) -> ParliaConfig
fn clone(&self) -> ParliaConfig
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 ParliaConfig
impl Debug for ParliaConfig
source§impl<'de> Deserialize<'de> for ParliaConfig
impl<'de> Deserialize<'de> for ParliaConfig
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 PartialEq for ParliaConfig
impl PartialEq for ParliaConfig
source§impl Serialize for ParliaConfig
impl Serialize for ParliaConfig
impl Copy for ParliaConfig
impl Eq for ParliaConfig
impl StructuralPartialEq for ParliaConfig
Auto Trait Implementations§
impl Freeze for ParliaConfig
impl RefUnwindSafe for ParliaConfig
impl Send for ParliaConfig
impl Sync for ParliaConfig
impl Unpin for ParliaConfig
impl UnwindSafe for ParliaConfig
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)