Struct finality_grandpa::CommitValidationResult [−][src]
pub struct CommitValidationResult<H, N> { /* fields omitted */ }Struct returned from validate_commit function with information
about the validation result.
Implementations
impl<H, N> CommitValidationResult<H, N>[src]
impl<H, N> CommitValidationResult<H, N>[src]pub fn ghost(&self) -> Option<&(H, N)>[src]
Returns the commit GHOST i.e. the block with highest number for which the cumulative votes of descendents and itself reach finalization threshold.
pub fn num_precommits(&self) -> usize[src]
Returns the number of precommits in the commit.
pub fn num_duplicated_precommits(&self) -> usize[src]
Returns the number of duplicate precommits in the commit.
pub fn num_equivocations(&self) -> usize[src]
Returns the number of equivocated precommits in the commit.
pub fn num_invalid_voters(&self) -> usize[src]
Returns the number of invalid voters in the commit.
Trait Implementations
impl<H, N> Default for CommitValidationResult<H, N>[src]
impl<H, N> Default for CommitValidationResult<H, N>[src]impl<H, N> From<CommitValidationResult<H, N>> for BadCommit[src]
impl<H, N> From<CommitValidationResult<H, N>> for BadCommit[src]fn from(r: CommitValidationResult<H, N>) -> Self[src]
Auto Trait Implementations
impl<H, N> RefUnwindSafe for CommitValidationResult<H, N> where
H: RefUnwindSafe,
N: RefUnwindSafe,
H: RefUnwindSafe,
N: RefUnwindSafe,
impl<H, N> Send for CommitValidationResult<H, N> where
H: Send,
N: Send,
H: Send,
N: Send,
impl<H, N> Sync for CommitValidationResult<H, N> where
H: Sync,
N: Sync,
H: Sync,
N: Sync,
impl<H, N> Unpin for CommitValidationResult<H, N> where
H: Unpin,
N: Unpin,
H: Unpin,
N: Unpin,
impl<H, N> UnwindSafe for CommitValidationResult<H, N> where
H: UnwindSafe,
N: UnwindSafe,
H: UnwindSafe,
N: UnwindSafe,