Stop lumd and reset database
Copy sudo systemctl stop lumd
cp $HOME /.lumd/data/priv_validator_state.json $HOME /.lumd/priv_validator_state.json.backup
lumd tendermint unsafe-reset-all --home $HOME /.lumd --keep-addr-book
Copy STATE_SYNC_RPC = https://rpc.cosmos.directory:443/lumnetwork
BACKUP_RPC = https://lumnetwork-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="19ad16527c98b782ee35df56b65a3a251bd99971@peer-1.mainnet.lum.network:26656,ebc272824924ea1a27ea3183dd0b9ba713494f83@lum-mainnet-seed.autostake.com:27416,42d79514ca40e942004e94f90557644cf36e986a@lum.seed.stavr.tech:31316,20e1000e88125698264454a884812746c2eb4807@seeds.lavenderfive.com:16756,df949a46ae6529ae1e09b034b49716468d5cc7e9@seeds.stakerhouse.com:10756,8542cd7e6bf9d260fef543bc49e59be5a3fa9074@seed.publicnode.com:26656"
echo -e "Modifying $HOME/.lumd/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 /.lumd/config/config.toml
mv $HOME /.lumd/priv_validator_state.json.backup $HOME /.lumd/data/priv_validator_state.json
Copy curl -L https://snapshots.lavenderfive.com/wasm/ $HOME /.lumd/wasmonly.tar.lz4 | lz4 -dc - | tar -xf - -C $HOME /.lumd
Restart lumd and check the log
Copy sudo systemctl restart lumd && sudo journalctl -u lumd -f --no-hostname -o cat