Crate sc_consensus_subspace

source ·
Expand description

sc-consensus-subspace is the core of Subspace consensus implementation.

You should familiarize yourself with Subnomicon and, ideally, protocol specifications. Documentation here assumes decent prior knowledge of the protocol on conceptual level and will not explain how the protocol works, it will instead explain how the protocol is implemented.

All of the modules here are crucial for consensus, open each module for specific details.

Modules§

  • Consensus archiver responsible for archival of blockchain history, it is driven by block import pipeline.
  • Schema for Subspace block weight in the aux-db.
  • Block import for Subspace, which includes stateful verification and corresponding notifications.
  • Utility module for handling Subspace client notifications.
  • Slot worker drives block and vote production based on slots produced in [sc_proof_of_time].
  • Stateless and parallelized block verification that happens before block is imported (except for locally produced blocks that are imported directly).

Structs§

  • State that must be shared between various consensus components.