Setup your node
Install pre requis
sudo apt-get update && sudo apt upgrade -y
sudo apt-get install make build-essential gcc git jq chrony -y
Install go
sudo rm -rf /usr/local/go
wget https://golang.org/dl/go1.19.1.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.19.1.linux-amd64.tar.gz
rm go1.19.1.linux-amd64.tar.gz
Setting up go
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export GO111MODULE=on
export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin
Install Node
Install the Celestia node
binary by running the following commands
#from $HOME dir
git clone https://github.com/celestiaorg/celestia-app
cd celestia
git fetch
git checkout v1.10.1
make install
To confirm that the node is well installed
celestia-appd version
#v1.10.1
Setting up the Node
Initialization node
Please choose your MONIKER name and replace it in the next command, it will represent your node
celestia-appd init MONIKER_NAME --chain-id celestia
This will generate severals files in ~/.celestia-app/config/
- node_key.json
- genesis.json
- priv_validator_key.json
Download and replace the genesis file
rm ~/.celestia-app/config/genesis.json
wget https://github.com/celestiaorg/networks/blob/master/celestia/genesis.json -O ~/.celestia-app/config/genesis.json
Set minimum gas prices
sed -i.bak -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"0.002utia\"/" ~/.celestia-app/config/app.toml
Node connexion
In order to connect the node you can either use seeds
, lives peers
or address book
.
- Seeds
- Peers
- Addrbook
Set Seeds
SEEDS = e6116822e1a5e283d8a85d3ec38f4d232274eaf3@consensus-full-seed-1.celestia-bootstrap.net:26656,cf7ac8b19ff56a9d47c75551bd4864883d1e24b5@consensus-full-seed-2.celestia-bootstrap.net:26656
sed -i.bak -e "s/^seeds *=.*/seeds = \"$SEEDS\"/" $HOME/.celestia-app/config/config.toml
Set Peers
PEERS = 4b19506a0432de219ee2db883c53756c1b3cbdfb@88.217.142.187:26656,890940193b592e7b53b882b62bf85d7a25190192@51.222.244.105:26656,a623f039a36391662a3b514d1fa17fbaa2e25319@149.50.96.24:16656,7d5767dfe229d6b82246165c1c353a56a6da1983@54.177.201.19:26656,de7a0953f9d5878604c077a54925167c120a97eb@141.95.65.115:26656,c89507c926f41901784f54b26e1ccc49ac9ecfda@31.214.144.83:20056,f103c4809c8263b311463422195e6ad8526911d6@74.118.136.167:26656,0cb62ebbce54e2d5e72ced753a879d3c08c61583@162.19.171.80:26656,dd603ca5470c0f195dea38d1f938b9e43a729a47@162.19.170.154:26656,6ba9f87efe6beb23bb7af2204eac769767d8ec78@78.129.165.127:23656,491c37d5de210600463c5599a3ffd272c8690014@57.128.20.184:23656,7f067f54987cccfe489fbe302ff1bf6c56aaf02f@162.19.81.54:23656,0cca24be2f0d845e67a3135fb67dff6e71750e60@148.251.151.51:16400,3af3e3556515eb68bfe4ec5ad134eb9ec56b521d@51.81.166.95:16400,994574dc373fc7552d5fb2616ca9d40654760a91@141.164.42.9:16400,d364357f55e37a038d9dbd143448ea792bb8edcf@15.235.115.156:16400,624257ef1a8b6e2d39ac13ed3e3e16963fbb54ea@149.102.156.193:26656,d5fafee95503bb76719f5c2849f3fe0be46e758c@217.160.39.214:26656,45779d388b18ad48d98c6ad54f35e95fe2a3b35a@165.22.30.175:26656,4ebfc1fac7a646105956ee563ea0d760e3099269@celestia-peer1.easy2stake.com:26756,87af580078c80c630625db2360b3dc19483d29cd@185.182.194.163:26656,005b439eca9a27b736156c0081a863a40b3be517@peers.celestia-node.pn.prod.fcstech.de:26656,5992372287bbb173bd291e299a26495057310165@57.128.74.73:26656,29c8a82a0be59a2c6a5d6fb2ad0a2e1b4d09de0f@181.188.232.25:26656,72dd61ecab64873e45c77f902fec73069dfb33f0@103.219.171.65:26656,0a0da77a47cc1a58febe39c73b3bc96758455de6@142.165.207.45:26656,3c18baae029c2d39347ef77ac777fe6fd38bc1e6@176.9.48.38:20056,1d824f2cf4df9c9da98c120b78be3f4319a1d7ff@46.4.23.42:26656,b1187a51400cef8b49a8482088eac57327989fe8@135.181.75.114:26656,deefd5d3a4d497be6772295d10174f021d344ac5@57.128.75.161:26656,094e037734702dc0803a58a10b50fc3bb46c7e73@51.210.34.156:26656,24a869f01efa19104dbce61ae6697952a9e9a5d2@139.84.232.124:26656,1b92a439555a19ee6edea85b184abb6873757dae@51.89.173.96:43656,8240e8a13594d40b6839f183795c551503309d3c@57.128.87.18:26656,3b11e4123a9db23f72fb5828b3f5b101217ee43d@116.202.208.214:2600,c1c92e14d641a6368627da662b96ff77135e4754@185.182.193.20:26656,4ebe56795fc5da1c0dc5f7acd5760d5c8fd4d250@5.9.87.216:33357
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.celestia-app/config/config.toml
Set Addrbook
Setup service file
[Unit]
Description="celestia node"
[Service]
User=USER
ExecStart=$(which celestia-appd) start
Restart=always
RestartSec=3
LimitNOFILE=4096
[Install]
WantedBy=multi-user.target
If you'd like to synchronise a node from a snapshot check the snapshot part
Start service file
systemctl daemon-reload
systemctl start celestia.service | journalctl -u celestia.service -f