Stop celestia-appd and reset database
Copy sudo systemctl stop celestia-appd
cp $HOME /.celestia-app/data/priv_validator_state.json $HOME /.celestia-app/priv_validator_state.json.backup
celestia-appd tendermint unsafe-reset-all --home $HOME /.celestia-app --keep-addr-book
Copy STATE_SYNC_RPC = https://rpc.cosmos.directory:443/celestia
BACKUP_RPC = https://celestia-rpc.lavenderfive.com:443
LATEST_HEIGHT = $( curl -s $STATE_SYNC_RPC /block | jq -r .result.block.header.height )
BLOCK_HEIGHT = $( echo LATEST_HEIGHT | awk '{print $1 - ($1 % 6000)}' ); \
TRUST_HASH = $( curl -s "$STATE_SYNC_RPC/block?height=$BLOCK_HEIGHT" | jq -r .result.block_id.hash )
SEEDS="e6116822e1a5e283d8a85d3ec38f4d232274eaf3@consensus-full-seed-1.celestia-bootstrap.net:26656,cf7ac8b19ff56a9d47c75551bd4864883d1e24b5@consensus-full-seed-1.celestia-bootstrap.net:26656,ebc272824924ea1a27ea3183dd0b9ba713494f83@celestia-mainnet-seed.autostake.com:27206,20e1000e88125698264454a884812746c2eb4807@seeds.lavenderfive.com:16656,24a607a217cf12be29bae5b2e8151391bde2d8c8@seed-celestia-01.stakeflow.io:15007,c809ca6486cd54501ce5291714c892f5dc9cfa93@celestia.seeds.validao.xyz:36656,8542cd7e6bf9d260fef543bc49e59be5a3fa9074@seed.publicnode.com:26656,400f3d9e30b69e78a7fb891f60d76fa3c73f0ecc@celestia.rpc.kjnodes.com:12059,9aa8a73ea9364aa3cf7806d4dd25b6aed88d8152@celestia.seed.mzonder.com:13156,3abb9ad6d7a3c728984c4b7e9c05e91731779865@seed-celestia.theamsolutions.info:23656,23b88ebcfb2177dbd2d8b2920c363a25e038e69a@seed.celestia.validatus.com:2000,b7408d0c59fc0fd0c9153365d5593c6c32870cb0@seed-celestia.freshstaking.com:34656,8de3b1534abc9d565f232982c0fb7933c0038ead@celestia-full.avril14th.org:26656,12ad7c73c7e1f2460941326937a039139aa78884@celestia-mainnet-seed.itrocket.net:40656,86bd5cb6e762f673f1706e5889e039d5406b4b90@seed.celestia.node75.org:20356,9b1d22c3a78487d1a664a4b6a331fce527d14fb4@seed.celestia.mainnet.dteam.tech:27656"
echo -e "Modifying $HOME/.celestia-app/config/config.toml based on the following values:"
echo -e "RPC Address: $STATE_SYNC_RPC"
echo -e "Latest Block Height: $LATEST_HEIGHT"
echo -e "Sync Block Height: $BLOCK_HEIGHT"
echo -e "Trust Hash: $TRUST_HASH"
sed -i \
-e "s|^enable *=.*|enable = true|" \
-e "s|^rpc_servers *=.*|rpc_servers = \"$STATE_SYNC_RPC,$BACKUP_RPC\"|" \
-e "s|^trust_height *=.*|trust_height = $BLOCK_HEIGHT|" \
-e "s|^trust_hash *=.*|trust_hash = \"$TRUST_HASH\"|" \
-e "s|^seeds *=.*|seeds = \"$SEEDS\"|" \
$HOME /.celestia-app/config/config.toml
mv $HOME /.celestia-app/priv_validator_state.json.backup $HOME /.celestia-app/data/priv_validator_state.json
Copy curl -L https://snapshots.lavenderfive.com/wasm/$HOME/.celestia-app/wasmonly.tar.zst | tar -xaf - -C $HOME/.celestia-app
Restart celestia-appd and check the log
Copy sudo systemctl restart celestia-appd && sudo journalctl -u celestia-appd -f --no-hostname -o cat