Full node
Recommended Hardware: 6 Cores, 4GB RAM, 10TB of storage (NVME)
Chain ID: mocha-4 | Latest Version Tag: v4.0.3-mocha
Dependencies Installation
Update system and install build tools
sudo apt update && sudo apt upgrade -y
sudo apt install curl git wget htop tmux build-essential jq make lz4 gcc unzip -y
Install GO
cd $HOME
ver="1.24.1" && \
wget "https://golang.org/dl/go$ver.linux-amd64.tar.gz" && \
sudo rm -rf /usr/local/go && \
sudo tar -C /usr/local -xzf "go$ver.linux-amd64.tar.gz" && \
rm "go$ver.linux-amd64.tar.gz" && \
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> $HOME/.bash_profile && \
source $HOME/.bash_profile && \
go version
Automatic installation
Just copy and paste it on your server
Our snapshot is about 1 TB, so we suggest you run all the processes in the screen and get away from your computer for a few hours
screen -S celestia
source <(curl -s https://raw.githubusercontent.com/chaindigital/celestia/main/installfulltest.sh)
Manual installation
Come up with the name of your node and replace it instead <your_moniker>
MONIKER=<your_moniker>
Download binary files
cd $HOME
rm -rf celestia-app
git clone https://github.com/celestiaorg/celestia-app.git
cd celestia-app
git checkout v4.0.6-mocha
make install
Initialize the node
# config and init app
celestia-appd config chain-id mocha-4
celestia-appd config keyring-backend file
celestia-appd config node tcp://localhost:26657
celestia-appd init $MONIKER --chain-id mocha-4
Set node configuration
# Download genesis and addrbook
wget -O $HOME/.celestia-app/config/genesis.json https://testnets.chaindigital.io/celestia/genesis.json
wget -O $HOME/.celestia-app/config/addrbook.json https://testnets.chaindigital.io/celestia/addrbook.json
# set seeds and peers
SEEDS="5d0bf034d6e6a8b5ee31a2f42f753f1107b3a00e@celestia-testnet-seed.itrocket.net:11656"
PEERS="daf2cecee2bd7f1b3bf94839f993f807c6b15fbf@celestia-testnet-peer.itrocket.net:11656,[email protected]:40656,[email protected]:36656,[email protected]:26698,[email protected]:26656,[email protected]:26656,[email protected]:27206,[email protected]:26656,[email protected]:43656,[email protected]:26686,[email protected]:36656,[email protected]:36656,[email protected]:11656,[email protected]:21656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:11656"
sed -i -e "/^\[p2p\]/,/^\[/{s/^[[:space:]]*seeds *=.*/seeds = \"$SEEDS\"/}" \
-e "/^\[p2p\]/,/^\[/{s/^[[:space:]]*persistent_peers *=.*/persistent_peers = \"$PEERS\"/}" $HOME/.celestia-app/config/config.toml
# Set commit timeout
sed -i -e "s|^target_height_duration *=.*|timeout_commit = \"11s\"|" $HOME/.celestia-app/config/config.toml
# Set minimum gas price and disable indexing
sed -i.bak -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"0.002utia\"/;" ~/.celestia-app/config/app.toml
sed -i -e "s/^indexer *=.*/indexer = \"kv\"/" $HOME/.celestia-app/config/config.toml
# Set pruning
sed -i \
-e 's|^pruning *=.*|pruning = "nothing"|' \
$HOME/.celestia-app/config/app.toml
# Set configuration for v3
sed -i -e "s|^recv_rate *=.*|recv_rate = 10485760|" -e "s|^send_rate *=.*|send_rate = 10485760|" -e "s|^ttl-num-blocks *=.*|ttl-num-blocks = 12|" $HOME/.celestia-app/config/config.toml
Enable bbr
sudo modprobe tcp_bbr
echo "net.core.default_qdisc=fq" | sudo tee -a /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" | sudo tee -a /etc/sysctl.conf
sudo sysctl -p
Create a service
sudo tee /etc/systemd/system/celestia-appd.service > /dev/null <<EOF
[Unit]
Description=Celestia node
After=network-online.target
[Service]
User=$USER
WorkingDirectory=$HOME/.celestia-app
ExecStart=$(which celestia-appd) start --home $HOME/.celestia-app
Restart=on-failure
RestartSec=5
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable celestia-appd
Download latest chain snapshot
cd $HOME
rm -rf ~/.celestia-app/data
mkdir -p ~/.celestia-app/data
curl -L https://testnets.chaindigital.io/celestia/snap_celestia.tar.lz4 | tar -Ilz4 -xf - -C $HOME/.celestia-app/
Start service and check the logs
sudo systemctl restart celestia-appd && sudo journalctl -u celestia-appd -f
Last updated