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
BlockImportEvent
Represents different types of block import events
BlockValidation
Represents the successful validation of a received block announcement.
NewBlockEvent
Represents different types of block announcement events from the network.

Traits§

BlockImport
Abstraction over block import.