Stop passage and reset database
Copy sudo systemctl stop passage
cp $HOME /.passage/data/priv_validator_state.json $HOME /.passage/priv_validator_state.json.backup
passage tendermint unsafe-reset-all --home $HOME /.passage --keep-addr-book
Copy STATE_SYNC_RPC = https://rpc.cosmos.directory:443/passage
BACKUP_RPC = https://passage-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="aebb8431609cb126a977592446f5de252d8b7fa1@104.236.201.138:26656,b6beabfb9309330944f44a1686742c2751748b83@5.161.47.163:26656,7a9a36630523f54c1a0d56fc01e0e153fd11a53d@167.235.24.145:26656,ade4d8bc8cbe014af6ebdf3cb7b1e9ad36f412c0@seeds.polkachu.com:15656,20e1000e88125698264454a884812746c2eb4807@seeds.lavenderfive.com:15656,ebc272824924ea1a27ea3183dd0b9ba713494f83@passage-mainnet-seed.autostake.com:26916,8542cd7e6bf9d260fef543bc49e59be5a3fa9074@seed.publicnode.com:26656,df949a46ae6529ae1e09b034b49716468d5cc7e9@seeds.stakerhouse.com:10556,2b238d2c05c47629e03608a6107e156fcb50344c@65.108.101.158:20556,526d07b882df4cb820a8b9df819e14532d1811b0@seed-passage.ibs.team:16666,b85358e035343a3b15e77e1102857dcdaf70053b@seeds.bluestake.net:23356"
echo -e "Modifying $HOME/.passage/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 /.passage/config/config.toml
mv $HOME /.passage/priv_validator_state.json.backup $HOME /.passage/data/priv_validator_state.json
Copy curl -L https://snapshots.lavenderfive.com/wasm/$HOME/.passage/wasmonly.tar.lz4 | lz4 -dc - | tar -xf - -C $HOME/.passage
Restart passage and check the log
Copy sudo systemctl restart passage && sudo journalctl -u passage -f --no-hostname -o cat