πΎ Full Node Installation
Chain ID: celestia | Latest Version Tag: v3.8.1
Recommended Hardware:
Node Type
CPU
RAM
Storage
Mainnet
6
16GB
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.23.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 version
Automatic Installation
source <(curl -s https://raw.githubusercontent.com/validexis/Celestia/main/setup_fullnode_mainnet.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 v3.8.1
make install
# Config and initialize the node
celestia-appd config chain-id celestia
celestia-appd config keyring-backend file
celestia-appd config node tcp://localhost:26657
celestia-appd init $MONIKER --chain-id celestia
# Download genesis and addrbook
wget -O $HOME/.celestia-app/config/genesis.json https://mainnets.validexis.com/celestia/genesis.json
wget -O $HOME/.celestia-app/config/addrbook.json https://mainnets.validexis.com/celestia/addrbook.json
Setup config
# Set seeds and peers
SEEDS="12ad7c73c7e1f2460941326937a039139aa78884@celestia-mainnet-seed.itrocket.net:40656"
PEERS="60d481edb7e49efe01fa0b49a346cf9f8400db19@peer-celestia-mainnet.validexis.com:26656,a8ddad6896dddccc42534f24afc6d14bbf278f33@65.109.18.169:11656,b5622df798ab39de650fa2e7c79190a0d3e814e0@137.184.44.109:26656,e263dbf2fbd4734a364dac1236bb8cbd83a0c012@157.90.33.62:28656,d0c4affc656bad26d7a46e4b946c0be71baa4a1f@46.4.51.104:11656,a5f01c0afea36df559b8d92e55626c0b5275dfd0@103.219.169.97:43656,74fc653041a6ca07e3432f6f12e8753e1e4dfe21@38.121.43.84:26656,6ee545c2992a8201ce2ed68d73776695627595db@168.119.37.164:12056,ce99d7da2530f75d05880d13d9eda384d5a1afe4@65.109.34.34:23356,2ae2d3d0b97c4fcd134decb202ac241cd2f44735@37.252.186.118:2000,e6d602f66559ee2a7280a46efbc5f87efe567bcb@139.84.143.106:10456,2fdf0e8288e18f39815a750857414325a07e5fca@218.153.200.72:11002,44336a5aaae84446a31bc6fe22246d8a11af3c90@65.109.19.111:40656,9d4afca92c2d6e681d3605ae25cb1817620a9604@35.195.100.59:26656,c33e89275c461a3871253025a1f5dcde9f8856a2@136.243.67.47:11656,a71a4c58dce5b2268e3c7f229608772327110ee5@65.109.54.91:11056,9cd7540cd22f9a9442af23b5d83c2a69ea4b24c2@62.210.122.96: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 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 -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
# 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 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://celestia-snapshots.kjnodes.com/celestia-archive/snapshot_latest.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 .SyncInfo
#"catching_up": false means that the node is synchronized, we are waiting for complete synchronization
Last updated