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
cmd/**,node/**,libs/service/**-> Node assembly and lifecycleconfig/**,cmd/cometbft/**-> Node CLI and configuration- consensus/state.go, consensus/wal.go, consensus/reactor.go, consensus/round_state.go -> Consensus engine
consensus/types/**,privval/**-> Consensus messages and validator signingconsensus/propagation/**-> Consensus propagation- state/execution.go, state/validation.go, state/rollback.go, state/tx_filter.go -> State execution and block processing
- state/store.go,
store/**,state/indexer/**-> State and block storage p2p/**,libs/flowrate/**-> Peer-to-peer networkingblocksync/**,statesync/**-> Block and state synchronizationabci/client/**,abci/server/**,abci/types/**-> ABCI application integrationproto/tendermint/abci/**, abci/…/*.proto, abci/…/*.pb.go -> ABCI protocol and typesrpc/core/**, rpc/environment.go, rpc/routes.go -> RPC and API servicesrpc/jsonrpc/**,rpc/grpc/**,rpc/client/**,rpc/openapi/**-> RPC transports and clients- types/block*.go, types/commit.go, types/validator*.go, types/genesis.go, types/tx.go, types/evidence.go -> Core blockchain data model
- types/row_proof.go, types/share_proof.go, types/data_commitment.go -> Data availability proofs
- light/client.go, light/verifier.go,
light/store/**,light/provider/**-> Light client verification light/rpc/**,light/proxy/**-> Light client RPC and proxymempool/**, rpc/…/tx.go,state/tx_indexer/**-> Transaction admission and indexingevidence/**, types/evidence.go -> Evidence and accountability