Stop akash and reset database
Copy sudo systemctl stop akash
cp $HOME /.akash/data/priv_validator_state.json $HOME /.akash/priv_validator_state.json.backup
akash tendermint unsafe-reset-all --home $HOME /.akash --keep-addr-book
Copy STATE_SYNC_RPC = https://rpc.cosmos.directory:443/akash
BACKUP_RPC = https://akash-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="4acf579e2744268f834c713e894850995bbf0ffa@50.18.31.225:26656,86afe23f116ba4754a19819a55d153008eb74b48@15.164.87.75:26656,ade4d8bc8cbe014af6ebdf3cb7b1e9ad36f412c0@seeds.polkachu.com:12856,20e1000e88125698264454a884812746c2eb4807@seeds.lavenderfive.com:12856,ebc272824924ea1a27ea3183dd0b9ba713494f83@akash-mainnet-seed.autostake.com:26696,5e37aefd2a0b9d036b1609a45d6487606da0204b@rpc.ny.akash.farm:26656,47f7b7a021497ad7a338ea041f19a1a11ae06795@rpc.la.akash.farm:26656,8542cd7e6bf9d260fef543bc49e59be5a3fa9074@seed.publicnode.com:26656,9aa4c9097c818871e45aaca4118a9fe5e86c60e2@seed-akash-01.stakeflow.io:1506,61686e588f0af938484579adbc2093adff06c7aa@europlots.com:26656,c28827cb96c14c905b127b92065a3fb4cd77d7f6@seeds.whispernode.com:12856"
echo -e "Modifying $HOME/.akash/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 /.akash/config/config.toml
mv $HOME /.akash/priv_validator_state.json.backup $HOME /.akash/data/priv_validator_state.json
Copy curl -L https://snapshots.lavenderfive.com/wasm/ $HOME /.akash/wasmonly.tar.zst | tar -xaf - -C $HOME /.akash
Restart akash and check the log
Copy sudo systemctl restart akash && sudo journalctl -u akash -f --no-hostname -o cat