Struct finality_grandpa::CommitValidationResult [−][src]
Struct returned from validate_commit
function with information
about the validation result.
Implementations
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> 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,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,