Stop archwayd and reset database
Copy sudo systemctl stop archwayd
cp $HOME /.archway/data/priv_validator_state.json $HOME /.archway/priv_validator_state.json.backup
archwayd tendermint unsafe-reset-all --home $HOME /.archway --keep-addr-book
Copy STATE_SYNC_RPC = https://rpc.cosmos.directory:443/archway
BACKUP_RPC = https://archway-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="3ba7bf08f00e228026177e9cdc027f6ef6eb2b39@35.232.234.58:26656,b308dda41e4db2ee00852d91846f981c49943d46@161.97.96.91:46656,ebc272824924ea1a27ea3183dd0b9ba713494f83@archway-mainnet-seed.autostake.com:26946,20e1000e88125698264454a884812746c2eb4807@seeds.lavenderfive.com:11556,b6c1198fa025ce24d26d90527c5d2b71f9399756@seed-node.mms.team:34656,6471ac9ff8474373e8055d45b6246fd8c5204890@archway.seed.mzonder.com:10756,261acb73f483d1cace653cb54f7b8815f63b7e56@archway.lgns.net:26656,400f3d9e30b69e78a7fb891f60d76fa3c73f0ecc@archway.rpc.kjnodes.com:15659,bd9332cd0a99f5830ea457a32a56b32790f68716@135.181.58.28:27456,6b0ffcce9b59b91ceb8eea5d4599e27707e3604a@seeds.stakeup.tech:10214,17d6cb2601b67ad916d5433a404bfc000b0b6ef1@rpc.archway.nodestake.top:666,8542cd7e6bf9d260fef543bc49e59be5a3fa9074@seed.publicnode.com:26656"
echo -e "Modifying $HOME/.archway/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 /.archway/config/config.toml
mv $HOME /.archway/priv_validator_state.json.backup $HOME /.archway/data/priv_validator_state.json
Copy curl -L https://snapshots.lavenderfive.com/wasm/ $HOME /.archway/wasmonly.tar.zst | tar -xaf - -C $HOME /.archway
Restart archwayd and check the log
Copy sudo systemctl restart archwayd && sudo journalctl -u archwayd -f --no-hostname -o cat