Struct finality_grandpa::voter::BadCommit
source · pub struct BadCommit { /* private fields */ }
Expand description
The result of processing for a bad commit
Implementations§
source§impl BadCommit
impl BadCommit
sourcepub fn num_precommits(&self) -> usize
pub fn num_precommits(&self) -> usize
Get the number of precommits
sourcepub fn num_duplicated(&self) -> usize
pub fn num_duplicated(&self) -> usize
Get the number of duplicated precommits
sourcepub fn num_equivocations(&self) -> usize
pub fn num_equivocations(&self) -> usize
Get the number of equivocations in the precommits
sourcepub fn num_invalid_voters(&self) -> usize
pub fn num_invalid_voters(&self) -> usize
Get the number of invalid voters in the precommits
Trait Implementations§
source§impl From<CommitValidationResult> for BadCommit
impl From<CommitValidationResult> for BadCommit
source§fn from(r: CommitValidationResult) -> Self
fn from(r: CommitValidationResult) -> Self
Converts to this type from the input type.