Installation Guide/
testnet/
celestia

Rpc status: Active

Install Dependencies

sudo apt update
sudo apt install curl iptables build-essential git wget jq make gcc nano tmux htop nvme-cli pkg-config libssl-dev libleveldb-dev tar clang bsdmainutils ncdu unzip libleveldb-dev lz4 -y

Install Go

cd $HOME && \
ver="1.22.6" && \
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

Set Variables

echo "export WALLET='wallet'" >> $HOME/.bash_profile
echo "export MONIKER='validator'" >> $HOME/.bash_profile
echo "export PORT_CELESTIA='26'" >> $HOME/.bash_profile
source $HOME/.bash_profile

Build Binary

cd $HOME
rm -rf celestia-app
git clone https://github.com/celestiaorg/celestia-app.git
cd celestia-app
git checkout tags/v3.3.1-mocha -b v3.3.1-mocha
make install

celestia-appd version --long | grep -e version -e commit

Config and Initialize Node

celestia-appd init "validator" --chain-id mocha-4
celestia-appd config chain-id mocha-4
celestia-appd config keyring-backend os
celestia-appd config node tcp://localhost:${PORT_CELESTIA}657

Download Genesis and Addrbook

wget -O $HOME/.celestia-app/config/genesis.json https://download.dteam.tech/celestia/testnet/genesis
wget -O $HOME/.celestia-app/config/addrbook.json https://download.dteam.tech/celestia/testnet/addrbook

Set Seeds and Peers

SEEDS="85241b539d8f5445acc834849e99c548c7fe1e65@seed.celestia.testnet.dteam.tech:26656"
PEERS="6ed983017167d96c62b166725250940deb783563@peer.celestia.testnet.dteam.tech:27656,[email protected]:26656,[email protected]:11656,[email protected]:26686,[email protected]:28656,[email protected]:40656,[email protected]:26656,[email protected]:26656,[email protected]:11656,[email protected]:11656,[email protected]:11656,[email protected]:26656,[email protected]:23656,[email protected]:11556,[email protected]:26656,[email protected]:21656,[email protected]:11656,[email protected]:2400,[email protected]:26656,[email protected]:26679,[email protected]:27206,[email protected]:26656,[email protected]:26656,[email protected]:16007,[email protected]:36656,[email protected]:26656,[email protected]:11656,[email protected]:26656,[email protected]:2020,[email protected]:11656,[email protected]:26656,[email protected]:11656,[email protected]:11656,[email protected]:26656,[email protected]:26630,[email protected]:26656,[email protected]:36656,[email protected]:12056,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:36656,[email protected]:11656,[email protected]:32601,[email protected]:11656,[email protected]:26656,[email protected]:26656"
sed -i -e "s/^seeds *=.*/seeds = \"$SEEDS\"/; s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.celestia-app/config/config.toml

Set Custom Ports / Optional

sed -i.bak -e "s%:1317%:${PORT_CELESTIA}317%g;
s%:8080%:${PORT_CELESTIA}080%g;
s%:9090%:${PORT_CELESTIA}090%g;
s%:9091%:${PORT_CELESTIA}091%g;
s%:8545%:${PORT_CELESTIA}545%g;
s%:8546%:${PORT_CELESTIA}546%g;
s%:6065%:${PORT_CELESTIA}065%g" $HOME/.celestia-app/config/app.toml

sed -i.bak -e "s%:26658%:${PORT_CELESTIA}658%g;
s%:26657%:${PORT_CELESTIA}657%g;
s%:6060%:${PORT_CELESTIA}060%g;
s%:26656%:${PORT_CELESTIA}656%g;
s%^external_address = \"\"%external_address = \"$(wget -qO- eth0.me):${PORT_CELESTIA}656\"%;
s%:26660%:${PORT_CELESTIA}660%g" $HOME/.celestia-app/config/config.toml

Config Pruning / Optional

sed -i -e "s/^pruning *=.*/pruning = \"custom\"/" $HOME/.celestia-app/config/app.toml
sed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \"100\"/" $HOME/.celestia-app/config/app.toml
sed -i -e "s/^pruning-interval *=.*/pruning-interval = \"20\"/" $HOME/.celestia-app/config/app.toml

Set Minimum Gas Price / Optional

sed -i 's|minimum-gas-prices =.*|minimum-gas-prices = "0.002utia"|g' $HOME/.celestia-app/config/app.toml

Disable Indexing / Optional

INDEXER="null"
sed -i -e "s/^indexer *=.*/indexer = \"$INDEXER\"/" $HOME/.celestia-app/config/config.toml

Disable Snapshots / Optional

SNAPSHOT_INTERVAL=0
sed -i.bak -e "s/^snapshot-interval *=.*/snapshot-interval = \"$SNAPSHOT_INTERVAL\"/" ~/.celestia-app/config/app.toml

Create Service File

sudo tee /etc/systemd/system/celestia-appd.service > /dev/null <<EOF
[Unit]
Description=celestia testnet node
After=network-online.target

[Service]
User=$USER
WorkingDirectory=$HOME/.celestia-app
ExecStart=$(which celestia-appd) start
Restart=on-failure
RestartSec=5
LimitNOFILE=65535

[Install]
WantedBy=multi-user.target
EOF

Download Snapshot / Optional

celestia-appd tendermint unsafe-reset-all --home $HOME/.celestia-app
curl https://download.dteam.tech/celestia/testnet/pruned/latest-snapshot | lz4 -dc - | tar -xf - -C $HOME/.celestia-app

Enable and Start Service

sudo systemctl daemon-reload
sudo systemctl enable celestia-appd
sudo systemctl restart celestia-appd
sudo journalctl -u celestia-appd -f -o cat