celestia-node datastore
The node's datastore refers to the storage structure used to manage the data that supports the node's operation. It consists of directories and files that contain the node's state, configuration, and other information relevant to the node.
The following are the directories and files found in the datastore:
-
/blocks: This directory stores blocks. Each file contained in this directory represents a block on Celestia and contains its associated data. This directory is present in the datastore for bridge nodes but not light nodes, as light nodes do not store blocks. Its/blocks/heightssubdirectory links each block height to the corresponding block file. -
/data: This directory contains block headers and various files belonging to the node's log-structured merge (LSM) storage system. The LSM files (such asDISCARD,KEYREGISTRY, andMANIFEST) manage the efficient storage and retrieval of data. -
/keys: This directory stores the cryptographic key pairs that are used to operate the node. -
/indexand/transients: These legacy directories are no longer used by current celestia-node versions. They can remain in a datastore that was created by an earlier version. -
config.toml: Located in the node's root directory, this is the primary configuration file that defines core settings such as network parameters, P2P configuration, and API endpoints. This file is generated during node initialization.