pub struct CommitValidationResult<H, N> { /* private fields */ }
Expand description

Struct returned from validate_commit function with information about the validation result.

Implementations

Returns the commit GHOST i.e. the block with highest number for which the cumulative votes of descendents and itself reach finalization threshold.

Returns the number of precommits in the commit.

Returns the number of duplicate precommits in the commit.

Returns the number of equivocated precommits in the commit.

Returns the number of invalid voters in the commit.

Trait Implementations

Returns the “default value” for a type. Read more

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.