Introducing a new way to review your PRs.

Read the announcement

celestiaorg / celestia-core

A fork of CometBFT

View on GitHub

20 documents · Updated Nov 23, 2026

overview

Knowledge Base updated: 2026-11-22

Celestia Core knowledge base

Celestia Core is the Go implementation of the CometBFT-derived consensus node used by Celestia. It assembles a node from configuration, P2P reactors, consensus, state execution, storage, RPC services, and ABCI application connections.

Critical durable state is split between the configured database backends: blockchain state and validator metadata, block and commit stores, consensus WAL data, mempool-related state, and light-client trusted blocks. The types package defines the shared block, commit, validator, transaction, and data-availability proof formats that connect these subsystems.

Use the routing table to locate ownership-oriented documentation for a code area; parent pages provide system context and child pages focus on specialized protocols or storage layers.

flowchart TD
  CLI[Command-line node] --> CFG[Configuration and databases]
  CFG --> NODE[Node assembly and lifecycle]
  NODE --> P2P[P2P switch and reactors]
  NODE --> CONS[Consensus engine]
  CONS --> PROP[Consensus propagation]
  CONS --> STATE[State execution]
  STATE --> STORE[State and block storage]
  STATE --> ABCI[ABCI application integration]
  P2P --> SYNC[Block and state sync]
  NODE --> RPC[RPC and API services]
  RPC --> CLIENTS[RPC transports and clients]
  NODE --> MEM[Mempool and indexing]
  MEM --> EVID[Evidence handling]
  TYPES[Core blockchain data model] --> CONS
  TYPES --> STATE
  TYPES --> DA[Data availability proofs]
  LIGHT[Light client verification] --> LRPC[Light client RPC and proxy]
  LRPC --> RPC
sequenceDiagram
  participant P as Consensus peers
  participant R as Propagation reactor
  participant C as Consensus state
  participant A as ABCI application
  P->>R: proposal, vote, inventory, want
  R->>C: validated consensus data
  C->>C: advance round / collect quorum
  C->>A: execute finalized block
  A-->>C: execution and commit results

Glossary

  • ABCI — application boundary through which the node checks transactions and executes blocks.
  • Commit — quorum-backed validator signatures that finalize a block at a height and round.
  • WAL — consensus write-ahead log used for replay and recovery.
  • Row proof — Celestia-specific proof for data availability commitments over block data rows.
  • Light block — verified header and validator-set material persisted by a light client.

Codebase-wide invariants

  • Consensus state transitions and timeout-driven round progression are serialized through the consensus state machine (consensus/state.go).
  • Block execution is authoritative only through the state/execution path and ABCI result handling (state/**, abci/**).
  • Shared wire and persistence validation rules derive from the canonical types layer (types/**).
  • Configuration loading and database backend selection must produce validated node configuration before node assembly (config/config.go, config/db.go, config/toml.go).
  • Light-client trust decisions are based on verified headers and validator information rather than unverified RPC responses (light/**).

Routing table