Use our State Sync guide to fully sync in < 5 minutes
1. Stop the service file / stop your node
sudo systemctl stop umeed.service
2. Reset the blockchain database, remove address book files, and reset data/priv_validator_state.json to the genesis state, then download new addrbook.json
umeed unsafe-reset-all
wget -qO $HOME/.umee/config/addrbook.json <https://raw.githubusercontent.com/L0vd2/umeestatesync/main/addrbook.json>
3. Add variables that will store our RPC ip
SNAP_RPC1="http:95.216.77.56:26657/" \\
SNAP_RPC2="<http://95.216.77.56:1317/>"
4. Add variables that will store block height and trust hash data by querying our RPC
LATEST_HEIGHT=$(curl -s $SNAP_RPC2/block | jq -r .result.block.header.height); \\
BLOCK_HEIGHT=$((LATEST_HEIGHT - 500)); \\
TRUST_HASH=$(curl -s "$SNAP_RPC2/block?height=$BLOCK_HEIGHT" | jq -r .result.block_id.hash)
5. Check that everything works (If successful, the terminal will print non-empty results)
echo $LATEST_HEIGHT $BLOCK_HEIGHT $TRUST_HASH
6. Enable State Sync mode and add all needed data
sed -i.bak -E "s|^(enable[[:space:]]+=[[:space:]]+).*$|\\1true| ; \\
s|^(rpc_servers[[:space:]]+=[[:space:]]+).*$|\\1\\"$SNAP_RPC1,$SNAP_RPC2\\"| ; \\
s|^(trust_height[[:space:]]+=[[:space:]]+).*$|\\1$BLOCK_HEIGHT| ; \\
s|^(trust_hash[[:space:]]+=[[:space:]]+).*$|\\1\\"$TRUST_HASH\\"|" $HOME/.umee/config/config.toml
7. Add our RPC as a persistent peer
peers="32d6dc74033fa65be31d12771569401bb43cd346@:26657" \\
&& sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \\"$peers\\"/" $HOME/.umee/config/config.toml
8. Restart your node and follow the logs