Finality¶
PostFiat has two versioned finality modes. A genesis that omits
consensus_v2_activation_height retains the legacy single-view,
direct-certificate rule. A network that commits an activation height uses that
legacy rule below the boundary and consensus v2 at and above it. Consensus v2
is an explicit prepare/precommit protocol; it is not chained HotStuff.
For n active validators, f = floor((n - 1) / 3) and
q = floor(2n / 3) + 1. Every v2 artifact binds the chain/genesis/protocol,
committee epoch/root, height/view, parent, payload, resulting state root,
validator and phase. At each height:
- the deterministic proposer for
(height, view)signs the exact proposal; - validators verify deterministic execution, then atomically persist their highest prepare round before signing a prepare vote;
qdistinct prepare votes form a prepare QC, which becomes the durable lock;- validators persist the lock/high-QC and precommit round before signing;
qdistinct precommit votes for the same non-nil block form the only commit QC.
A lone prepare QC and the legacy direct certificate have no commit authority
after activation. The committed block embeds its proposal, optional timeout
ancestry, prepare QC and precommit QC, so history replay does not trust an
in-memory cache. Snapshots retain signer safety and verified-QC artifacts: v6
introduced this, and main writes v7 while still reading v6 and v5
(SNAPSHOT_VERSION in crates/types/src/core_chain.rs,
crates/node/src/lifecycle_queries.rs). The live devnet uses consensus v2
(Network Status).
flowchart TD
Start[Certified ordering request] --> Membership[Read active validator set]
Membership --> Leader[Select deterministic proposer for height H and view V]
Leader --> Proposal[Bind parent, payload, state root, registry root, proposer]
Proposal --> Validate[Validate proposal and local deterministic execution]
Validate --> PrepareState[Persist prepare high-water]
PrepareState --> PrepareVote[Sign prepare vote]
PrepareVote --> PrepareQC[Verify q-vote prepare QC and persist lock]
PrepareQC --> PrecommitVote[Persist round, then sign precommit]
PrecommitVote -->|votes >= q| PrecommitQC[Verify non-nil precommit QC]
PrecommitQC --> Commit[Commit proposal at height H]
Validate -->|unavailable| Timeout[Persist and sign timeout vote]
Timeout -->|votes >= q| TC[Verify timeout certificate]
TC --> Next[Deterministic proposer for view V plus 1]
Next --> Proposal
View-change boundary¶
Before activation, nonzero views remain disabled. After activation, view
V + 1 requires a signed timeout certificate for the same height at view V.
The certificate's high QC is a typed reference resolved against a fully verified
prepare QC graph; heterogeneous opaque legacy IDs fail closed. A later-view
proposal must carry that exact timeout ID and the same valid-QC reference. If it
is locked, the proposal must repropose the certified block rather than switch to
a conflicting state transition.
Prepare, precommit, and timeout authorization share one durable round floor:
the maximum of their three persisted high-water marks. Every phase rejects a
round below that floor; phases at the same round may still complete. The floor
is derived from the existing state fields, including after restart or snapshot
restore. Authorization persists the new state before returning a signature.
The production transport uses these same types and store calls from
crates/ordering_fast; the ordering crate is no longer merely a disconnected
reference model for activated consensus v2.
An existing single-view network cannot silently rewrite genesis to activate v2. The current governance path can authorize typed future activation state only through distinct ML-DSA-65 authorizations from the active old-rule registry; every node must still run a release that understands the same irreversible boundary. A network without such a committed boundary requires a coordinated new genesis/reset, with the old history frozen and independently replayable. New networks may choose an activation height at genesis and replay the legacy prefix followed by v2 blocks.
The signing-round contract gives the fixed-height safety argument, implementation boundary, and focused regression coverage.
Certificate lanes are not block consensus¶
FastPay and FastSwap use quorum certificates over prefunded owned objects. They do not make an account transaction final without consensus and they do not change the block commit rule above:
- FastPay is a single-owner payment/unwrap lane. Product finality requires the owner-authorized order, a distinct-validator certificate, and the configured durable apply-acknowledgement rule. Ordered recovery confirms or cancels an expired lock and permanently fences the old object version.
- FastSwap is a dual-owner DvP lane. It uses durable reservation plus separate prepare/decision/effects certificates. Exactly one Confirm-or-Cancel decision may become terminal; Confirm applies both conserved legs or neither.
- Primary-ledger deposits, exits, checkpoints, governance controls, and recovery decisions still enter the consensus-ordered ledger where the protocol calls for them.
The detailed boundary is in Settlement Lanes.
Client finality¶
Clients must verify the certificate and the transaction receipt code. A converged or certified block may contain a rejected transaction receipt, so block finality alone is not transaction success. Full state replay remains an out-of-band audit path.
Source anchors¶
crates/node/src/block_finality.rscrates/node/src/batch_snapshot.rscrates/node/src/consensus_artifacts.rscrates/node/src/consensus_v2_finality.rscrates/node/src/consensus_v2_store.rscrates/ordering_fast/src/consensus_v2.rscrates/execution/src/owned_transfer_recovery.rscrates/node/src/fastswap_service.rscrates/storage/src/fastswap_store.rscrates/node/src/tests/consensus_history.rs