Stop evmosd and reset database
Copy sudo systemctl stop evmosd
cp $HOME /.evmosd/data/priv_validator_state.json $HOME /.evmosd/priv_validator_state.json.backup
evmosd tendermint unsafe-reset-all --home $HOME /.evmosd --keep-addr-book
Copy STATE_SYNC_RPC = https://rpc.cosmos.directory:443/evmos
BACKUP_RPC = https://evmos-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="babc3f3f7804933265ec9c40ad94f4da8e9e0017@seed.rhinostake.com:13456,7aa31684d201f8ebc0b1e832d90d7490345d77ee@52.10.99.253:26656,5740e4a36e646e80cc5648daf5e983e5b5d8f265@54.39.18.27:26656,588cedb70fa1d98c14a2f2c1456bfa41e1a156a8@evmos-sentry.mercury-nodes.net:29539,ade4d8bc8cbe014af6ebdf3cb7b1e9ad36f412c0@seeds.polkachu.com:13456,20e1000e88125698264454a884812746c2eb4807@seeds.lavenderfive.com:13456,ebc272824924ea1a27ea3183dd0b9ba713494f83@evmos-mainnet-seed.autostake.com:26736,40f4fac63da8b1ce8f850b0fa0f79b2699d2ce72@seed.evmos.jerrychong.com:26656,86bd5cb6e762f673f1706e5889e039d5406b4b90@evmos.seed.node75.org:10756,8542cd7e6bf9d260fef543bc49e59be5a3fa9074@seed.publicnode.com:26656,ac009a9564d3471852795b5d703095a1d4b6a3e1@seed-evmos-01.stakeflow.io:1707,008175475229d09bcbbbe713c4e50faa85719c9e@seed-node.mms.team:37656,8f0364267437c746762af90e6ac550033553b399@seed.evmos.validatus.com:2000"
echo -e "Modifying $HOME/.evmosd/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 /.evmosd/config/config.toml
mv $HOME /.evmosd/priv_validator_state.json.backup $HOME /.evmosd/data/priv_validator_state.json
Copy curl -L https://snapshots.lavenderfive.com/wasm/ $HOME /.evmosd/wasmonly.tar.zst | tar -xaf - -C $HOME /.evmosd
Restart evmosd and check the log
Copy sudo systemctl restart evmosd && sudo journalctl -u evmosd -f --no-hostname -o cat