Module sc_consensus::import_queue

source ·
Expand description

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.

The ImportQueue trait allows such verification strategies to be instantiated. The BasicQueue and BasicVerifier traits allow serial queues to be instantiated simply.

Modules§

Structs§

  • 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.

Enums§

Traits§

Functions§

Type Aliases§