Module import

Source
Expand description

This module provides an abstraction over block import in the form of the BlockImport trait.

Structs§

BlockImportOutcome
Outcome of the BlockImport’s block handling.
ProofOfStakeBlockImport
An implementation of BlockImport used in Proof-of-Stake consensus that does nothing.

Enums§

BlockImportError
Represents the error case of a failed block import
BlockValidation
Represents the successful validation of a received NewBlock message.

Traits§

BlockImport
Abstraction over block import.