pub struct BftConfig {
pub quorum_config: QuorumConfig,
pub voting_config: VotingConfig,
pub reputation_config: ReputationConfig,
pub max_rounds_per_view: u64,
pub phase_timeout: Duration,
pub use_reputation_weights: bool,
}Expand description
BFT consensus configuration
Fields§
§quorum_config: QuorumConfig§voting_config: VotingConfig§reputation_config: ReputationConfig§max_rounds_per_view: u64Maximum rounds before view change
phase_timeout: DurationTimeout for each phase
use_reputation_weights: boolEnable reputation-based weights
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BftConfig
impl<'de> Deserialize<'de> for BftConfig
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 BftConfig
impl RefUnwindSafe for BftConfig
impl Send for BftConfig
impl Sync for BftConfig
impl Unpin for BftConfig
impl UnwindSafe for BftConfig
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