💾 Full Node Installation
Chain ID: mocha-4 | Latest Version Tag: v6.2.0-mocha
Recommended Hardware:
Node Type
CPU
RAM
Storage
Testnet
6
8GB
10TB
Install dependencies
# Update the repositories
sudo apt update && apt upgrade -y# Install developer packages
sudo apt install curl git wget htop tmux build-essential jq make lz4 gcc unzip -y# Install Go
sudo rm -rf /usr/local/go
curl -Ls https://go.dev/dl/go1.24.6.linux-amd64.tar.gz | sudo tar -xzf - -C /usr/local
eval $(echo 'export PATH=$PATH:/usr/local/go/bin' | sudo tee /etc/profile.d/golang.sh)
eval $(echo 'export PATH=$PATH:$HOME/go/bin' | tee -a $HOME/.profile)
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> $HOME/.bash_profile
source $HOME/.bash_profile
go versionAutomatic Installation
source <(curl -s https://raw.githubusercontent.com/validexisinfra/Celestia/main/setup_archiv_testnet.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 v6.2.0-mocha
make install# Config and initialize the node
celestia-appd config set client chain-id mocha-4
celestia-appd config set client keyring-backend file
celestia-appd config set client node tcp://localhost:26657
celestia-appd init $MONIKER --chain-id mocha-4# Download genesis and addrbook
wget -O $HOME/.celestia-app/config/genesis.json https://testnets1.validexis.com/celestia/genesis.json
wget -O $HOME/.celestia-app/config/addrbook.json https://testnets1.validexis.com/celestia/addrbook.jsonSetup config
# Add seeds
SEEDS="30a8f6668043544ee2d9af9369f0f68ff8cf2c43@seed-celestia-testnet.validexis.com:26656"
PEERS="9d357da286e8278c79ec6ebfc01d295a547ddd98@peer-celestia-testnet.validexis.com:26656,[email protected]:11656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656"
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 minimum gas price and disable indexing
sed -i -e "s|^minimum-gas-prices *=.*|minimum-gas-prices = \"0.002utia\"|" $HOME/.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
# 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 service file
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# Download latest chain snapshot
curl -L https://snapshots1.validexis.com/celestia-testnet/snap_celestia-archive_8548409.tar.lz4 | tar -Ilz4 -xf - -C $HOME/.celestia-app/# Enable and start service
sudo systemctl daemon-reload
sudo systemctl enable celestia-appd
sudo systemctl start celestia-appd && sudo journalctl -u celestia-appd -f# Check status
celestia-appd status 2>&1 | jq
#"catching_up": false means that the node is synchronized, we are waiting for complete synchronizationLast updated
