Stop sedad and reset database
Copy sudo systemctl stop sedad
cp $HOME /.sedad/data/priv_validator_state.json $HOME /.sedad/priv_validator_state.json.backup
sedad tendermint unsafe-reset-all --home $HOME /.sedad --keep-addr-book
Copy STATE_SYNC_RPC = https://rpc.cosmos.directory:443/seda
BACKUP_RPC = https://seda-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="31f54fbcf445a9d9286426be59a17a811dd63f84@18.133.231.208:26656,ade4d8bc8cbe014af6ebdf3cb7b1e9ad36f412c0@seeds.polkachu.com:25856,cec848e7d4c5a7ae305b27cda133d213435c110f@seed-seda.ibs.team:16679,400f3d9e30b69e78a7fb891f60d76fa3c73f0ecc@seda.rpc.kjnodes.com:17359,20e1000e88125698264454a884812746c2eb4807@seeds.lavenderfive.com:25856,cec848e7d4c5a7ae305b27cda133d213435c110f@seed-seda.ibs.team:16679,ebc272824924ea1a27ea3183dd0b9ba713494f83@seda-mainnet-seed.autostake.com:26866,c28827cb96c14c905b127b92065a3fb4cd77d7f6@seeds.whispernode.com:25856,b85358e035343a3b15e77e1102857dcdaf70053b@seeds.bluestake.net:24656"
echo -e "Modifying $HOME/.sedad/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 /.sedad/config/config.toml
mv $HOME /.sedad/priv_validator_state.json.backup $HOME /.sedad/data/priv_validator_state.json
Copy curl -L https://snapshots.lavenderfive.com/wasm/ $HOME /.sedad/wasmonly.tar.lz4 | lz4 -dc - | tar -xf - -C $HOME /.sedad
Restart sedad and check the log
Copy sudo systemctl restart sedad && sudo journalctl -u sedad -f --no-hostname -o cat