Skip to main content

Celestia Node

This tutorial goes over building and installing celestia-node. This tutorial assumes you completed the steps in setting up your development environment here.

Install Celestia Node

Installing celestia-node for Arabica Devnet means installing a specific version to be compatible with the network.

Install the celestia-node binary by running the following commands:

cd $HOME
rm -rf celestia-node
git clone https://github.com/celestiaorg/celestia-node.git
cd celestia-node/
git checkout tags/v0.5.0-rc5
make install
make cel-key

Verify that the binary is working and check the version with the celestia version command:

celestia version
Semantic version: v0.5.0-rc5
Commit: 039facd94104c741f8fa995e80f1321776ae4ad3
Build Date: Tue Nov 15 16:23:30 EST 2022
System version: amd64/linux
Golang version: go1.19.1

Network Selection

You can perform network selection in celestia-node between Arabica and Mamaki. However, you should note that networks work best on the celestia-node versions mentioned above.

celestia light init --p2p.network arabica
celestia light start --p2p.network arabica

NOTE: It is advised before switching networks to reinitialize your node via init command. This is due to an old config being present. Re-initialisation will reset the config.

Errors

If you an encounter an error, it is likely that an old config file is present:

Error: nodebuilder/share: interval must be positive; nodebuilder/core: invalid IP addr given:

# or

Error: nodebuilder/share: interval must be positive

You can re-initialize your node with the following command:

rm -rf ~./celestia-light-arabica-2 && celestia light init --p2p.network arabica

Your output will look similar to below:

2022-11-01T22:23:19.581+0100    INFO    node    nodebuilder/init.go:20  Initializing Light Node Store over '/Users/joshstein/.celestia-light-arabica-2'
2022-11-01T22:23:19.582+0100 INFO node nodebuilder/init.go:51 Saving config {"path": "/Users/joshstein/.celestia-light-arabica-2/config.toml"}
2022-11-01T22:23:19.582+0100 INFO node nodebuilder/init.go:52 Node Store initialized

Then start your node:

celestia light start --p2p.network arabica