Stop humansd and reset database
Copy sudo systemctl stop humansd
cp $HOME /.humansd/data/priv_validator_state.json $HOME /.humansd/priv_validator_state.json.backup
humansd tendermint unsafe-reset-all --home $HOME /.humansd --keep-addr-book
Copy STATE_SYNC_RPC = https://rpc.cosmos.directory:443/humans
BACKUP_RPC = https://humans-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="400f3d9e30b69e78a7fb891f60d76fa3c73f0ecc@humans.rpc.kjnodes.com:12259,f8006da7d742777eeca0194b94586c8f147be4f6@humans-mainnet-seed.itrocket.net:17656,babc3f3f7804933265ec9c40ad94f4da8e9e0017@seed.rhinostake.com:18456,0e959a22dfdd34ac16f9af82d76ec6ae5f0e8e73@65.21.46.90:5256,8542cd7e6bf9d260fef543bc49e59be5a3fa9074@seed.publicnode.com:26656,ebc272824924ea1a27ea3183dd0b9ba713494f83@humans-mainnet-seed.autostake.com:27536"
echo -e "Modifying $HOME/.humansd/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 /.humansd/config/config.toml
mv $HOME /.humansd/priv_validator_state.json.backup $HOME /.humansd/data/priv_validator_state.json
Copy curl -L https://snapshots.lavenderfive.com/wasm/ $HOME /.humansd/wasmonly.tar.zst | tar -xaf - -C $HOME /.humansd
Restart humansd and check the log
Copy sudo systemctl restart humansd && sudo journalctl -u humansd -f --no-hostname -o cat