Import Queue primitive: something which can verify and import blocks.
This serves as an intermediate and abstracted step between synchronization and import. Each mode of consensus will have its own requirements for block verification. Some algorithms can verify in parallel, while others only sequentially.
ImportQueue trait allows such verification strategies to be
BasicVerifier traits allow serial
queues to be instantiated simply.
Interface to a basic block import queue that is importing blocks sequentially in a separate task, with plugable verification.
Block data used by the queue.
Block import error.
Block import successful result.
Blocks import queue API.
Hooks that the verification queue can use to influence the synchronization algorithm.
Verify a justification of a block
Single block import function.
Shared block import struct used by the queue.
Shared justification import struct used by the queue.
Type of keys in the blockchain cache that consensus module could use for its needs.
A commonly-used Import Queue type.
Maps to the Origin used by the network.