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
)