Skip to content

Parachain Consensus

Introduction

A parachain built with the Polkadot SDK does not run its own finality protocol. Its collators author blocks, and relay chain validators check and finalize them. On the parachain side, this work is done by Cumulus, the set of client libraries and pallets that turns a FRAME runtime and a node into a parachain.

This page describes what the Cumulus collator and the parachain runtime do to get a block from the transaction pool to the relay chain, and how the stages on the relay chain (the inclusion pipeline) relate to that work. For the relay chain side of the protocol (validator assignment, availability, approval checking, disputes, and the economic security behind them), see the Parachains page on the Polkadot Wiki.

Components

The parachain template wires the following consensus components together:

  • pallet_aura: Runtime pallet that defines the set of block authors and the slot duration. Collators take turns authoring blocks in Aura slots.
  • cumulus_pallet_aura_ext: Runtime pallet that connects Aura to Cumulus. It provides the FixedVelocityConsensusHook and the block executor used during validation.
  • cumulus_pallet_parachain_system: Runtime pallet that receives relay chain data through the set_validation_data inherent, enforces the consensus hook, and registers the validate_block function that relay chain validators run.
  • Aura collator: Node-side block authoring logic from cumulus_client_consensus_aura::collators. The template node uses the lookahead collator, and polkadot-omni-node can also run the slot_based collator.

In the template runtime, the validation entry point is registered with the register_validate_block! macro, using the Aura block executor:

cumulus_pallet_parachain_system::register_validate_block! {
    Runtime = Runtime,
    BlockExecutor = cumulus_pallet_aura_ext::BlockExecutor::<Runtime, Executive>,
}

What the Collator Does

For each block it authors, a Cumulus collator goes through the following steps:

  1. Claim the slot: The collator checks whether one of its Aura keys is the author for the current slot. Only the slot owner authors a block.
  2. Choose a parent: The collator picks a relay chain block to build against (the relay parent) and a parachain parent block. With asynchronous backing, the parent can be a block that is not yet included on the relay chain, as long as the runtime's AuraUnincludedSegmentApi::can_build_upon allows it.
  3. Build the block: The collator executes the runtime to build a block. The block includes the set_validation_data inherent, which carries the relay parent and a relay chain state proof into the runtime.
  4. Produce the proof of validity: Alongside the block, the collator records a storage proof of every state item the block reads or writes. The block and this proof form the proof of validity (PoV).
  5. Submit the collation: The collator compresses the PoV and passes it to the collation generation subsystem, which sends it to the relay chain validators assigned to the parachain's core.

The relay chain validators do not need the parachain's state. They run the parachain's validate_block function, which is part of the runtime Wasm blob already registered on the relay chain, against the PoV. If the block's state transitions are valid, the result matches the header the collator produced.

flowchart LR
    subgraph Parachain["Parachain collator"]
        direction LR
        Txs[Transaction pool] --> Build[Build block<br>with Aura]
        Build --> PoV[Block + storage proof<br>= PoV]
    end
    subgraph Relay["Relay chain"]
        Validators[Backing validators<br>run validate_block]
    end
    PoV -->|Submit collation| Validators

To inspect what a collator submits, polkadot-omni-node can write every PoV it builds to a folder with the --export-pov-to-path option.

Inclusion Pipeline

After submission, every parachain block (parablock) passes through the same pipeline on the relay chain. Each stage is carried out by relay chain validators:

%%{init: {"flowchart": {"nodeSpacing": 40, "rankSpacing": 60}}}%%
flowchart LR
  subgraph Row[" "]
    direction LR
    G["Generation"] --> B["Backing"] --> I["Inclusion"]
  end
  style Row fill:none,stroke:none

  C["Context"]:::nobox
  C -.-> G
  C -.-> B

  classDef nobox fill:none,stroke:none,color:inherit;
  • Context: To build or check a parablock, collators and validators need the parachain's state context. It comes from two sources: the relay parent, which is the relay chain block the parablock is anchored to, and the unincluded segment, which is the chain of parablocks that collators have built but that the relay chain has not yet included. The relay parent is always a different relay chain block from the one that eventually includes the parablock.
  • Generation: The collator builds the block and the PoV, as described in What the Collator Does.
  • Backing: The validators assigned to the parachain's core run validate_block on the PoV and sign a validity statement. With enough positive statements, the candidate is backed and its header is placed on the relay chain.
  • Inclusion: Validators distribute erasure-coded chunks of the PoV so it stays available, and the parablock goes through the approval process before it is considered included.

The relay chain stores only the parablock header, not the full block. The complete block stays on the parachain network.

Whether a parachain uses synchronous or asynchronous backing, all parablocks follow this pipeline. With asynchronous backing, several parablocks can be at different stages at the same time. With elastic scaling, parablocks are also spread across more than one core.

Where to Go Next

  • Learn Asynchronous Backing


    Configure the runtime constants and the lookahead collator that let collators build ahead of the relay chain.

    Asynchronous Backing

  • Learn Elastic Scaling


    Configure the slot-based collator and the runtime to produce blocks on more than one core.

    Elastic Scaling

  • Learn Parachain Protocol


    Read about the relay chain side of parachain validation on the Polkadot Wiki.

    Parachains

Last update: November 17, 2026
| Created: November 17, 2026