Stop planqd and reset database
Copy sudo systemctl stop planqd
cp $HOME /.planqd/data/priv_validator_state.json $HOME /.planqd/priv_validator_state.json.backup
planqd tendermint unsafe-reset-all --home $HOME /.planqd --keep-addr-book
Copy STATE_SYNC_RPC = https://rpc.cosmos.directory:443/planq
BACKUP_RPC = https://planq-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="dd2f0ceaa0b21491ecae17413b242d69916550ae@135.125.247.70:26656,5966b4ef17da12ee63ef30e50512ad41d541195c@seeds-planq.sxlzptprjkt.xyz:18656,c443eb8888e96e260dc23b9ef3c5a5773ec0e261@rpc.planq.nodexcapital.com:12756,8542cd7e6bf9d260fef543bc49e59be5a3fa9074@seed.publicnode.com:26656,66b66bd2d97649da2062deb102d4ff195e2f2d39@mainnet-seed.konsortech.xyz:10165,08bc9afd0cac4ae6cf8f1877920b0cc7e58a6f42@seeds.tendermint.roomit.xyz:40003"
echo -e "Modifying $HOME/.planqd/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 /.planqd/config/config.toml
mv $HOME /.planqd/priv_validator_state.json.backup $HOME /.planqd/data/priv_validator_state.json
Copy curl -L https://snapshots.lavenderfive.com/wasm/ $HOME /.planqd/wasmonly.tar.zst | tar -xaf - -C $HOME /.planqd
Restart planqd and check the log
Copy sudo systemctl restart planqd && sudo journalctl -u planqd -f --no-hostname -o cat