Stop furyad and reset database
Copy sudo systemctl stop furyad
cp $HOME /.furyad/data/priv_validator_state.json $HOME /.furyad/priv_validator_state.json.backup
furyad tendermint unsafe-reset-all --home $HOME /.furyad --keep-addr-book
Copy STATE_SYNC_RPC = https://rpc.cosmos.directory:443/furya
BACKUP_RPC = https://furya-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="38f40db17cdae23ba3c2b0f7d5738b9d31d077aa@34.32.247.201:26656,03d5ce3bad5e8c1327f5547f89bfd215d946e7c0@135.181.59.98:26656,906ba6fd7cc9349d63c26608736ac91fe09437fb@85.215.65.44:26656"
echo -e "Modifying $HOME/.furyad/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 /.furyad/config/config.toml
mv $HOME /.furyad/priv_validator_state.json.backup $HOME /.furyad/data/priv_validator_state.json
Copy curl -L https://snapshots.lavenderfive.com/wasm/ $HOME /.furyad/wasmonly.tar.zst | tar -xaf - -C $HOME /.furyad
Restart furyad and check the log
Copy sudo systemctl restart furyad && sudo journalctl -u furyad -f --no-hostname -o cat