VALIDATOR NODE SETUP
Install GO and dependencies HERE
git clone https://github.com/celestiaorg/celestia-app.git
cd celestia-app
git checkout v0.12.1
make install
celestia-appd init <moniker> --chain-id blockspacerace-0
wget -qO $HOME/.celestia-app/config/genesis.json https://github.com/celestiaorg/networks/raw/master/blockspacerace/genesis.json
seeds="8f14ec71e1d712c912c27485a169c2519628cfb6@celest-test-seed.theamsolutions.info:22256,0293f2cf7184da95bc6ea6ff31c7e97578b9c7ff@65.109.106.95:26656"
sed -i "s/^seeds *=.*/seeds = \"$seeds\"/;" $HOME/.celestia-app/config/config.toml
sudo tee <<EOF >/dev/null /etc/systemd/system/celestia-appd.service
[Unit]
Description=Celestia-App
After=network-online.target
#
[Service]
User=$USER
ExecStart=$(which celestia-appd) start
Restart=on-failure
RestartSec=10
LimitNOFILE=4096
#
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl enable celestia-appd
sudo systemctl daemon-reload
sudo systemctl restart celestia-appd
sudo journalctl -u celestia-appd.service -f -o cat
STATE SYNC SERVICE
Please make sure You have latest, officially launched version of Celestia-App binaries.
sudo systemctl stop celestia-appd
celestia-appd tendermint unsafe-reset-all --home $HOME/.celestia-app
SNAP_RPC="https://celest-archive.rpc.theamsolutions.info:443"; \
LATEST_HEIGHT=$(curl -s $SNAP_RPC/block | jq -r .result.block.header.height); \
BLOCK_HEIGHT=$(($LATEST_HEIGHT - 1000)); \
TRUST_HASH=$(curl -s "$SNAP_RPC/block?height=$BLOCK_HEIGHT" | jq -r .result.block_id.hash); \
echo $LATEST_HEIGHT $BLOCK_HEIGHT $TRUST_HASH
sed -i.bak -E "s|^(enable[[:space:]]+=[[:space:]]+).*$|\1true| ; \
s|^(rpc_servers[[:space:]]+=[[:space:]]+).*$|\1\"$SNAP_RPC,$SNAP_RPC\"| ; \
s|^(trust_height[[:space:]]+=[[:space:]]+).*$|\1$BLOCK_HEIGHT| ; \
s|^(trust_hash[[:space:]]+=[[:space:]]+).*$|\1\"$TRUST_HASH\"|" $HOME/.celestia-app/config/config.toml; \
wget -qO $HOME/.celestia-app/config/addrbook.json https://snapshots.theamsolutions.info/celest-addrbook.json
sudo systemctl restart celestia-appd
sudo journalctl -u celestia-appd.service -f -o cat
DATA SNAPSHOT (State-Synced, not full data)
(updated ~every 3 hrs.)
#snapshot info check : curl -s https://snapshots.theamsolutions.info | egrep -o ">celestia-snap*.*tar" | tr -d ">"
snap=$(curl -s https://snapshots.theamsolutions.info/ | egrep -o ">celestia-snap*.*tar" | tr -d ">")
sudo systemctl stop celestia-appd
mv $HOME/.celestia-app/data/priv_validator_state.json $HOME
wget -P $HOME https://snapshots.theamsolutions.info/${snap}
rm -rf $HOME/.celestia-app/data
tar xf $HOME/${snap} -C $HOME/.celestia-app
rm $HOME/${snap}
mv $HOME/priv_validator_state.json $HOME/.celestia-app/data/
wget -q -O $HOME/.celestia-app/config/addrbook.json https://snapshots.theamsolutions.info/celest-addrbook.json
sudo systemctl restart celestia-appd
sudo journalctl -u celestia-appd.service -f -o cat
GOOD LUCK!
AM Solutions © Copyright. All rights reserved.