Snapshot

wget -O $HOME/.dhealth/config/addrbook.json https://files.nodeshub.online/mainnet/dhealth/addrbook.json

Snapshot

sudo systemctl stop dhealth
# Back up priv_validator_state.json if needed
cp ~/.dhealth/data/priv_validator_state.json  ~/.dhealth/priv_validator_state.json.backup

# On some tendermint chains
dhealthd unsafe-reset-all --home $HOME/.dhealth --keep-addr-book

# On other tendermint chains
dhealthd tendermint unsafe-reset-all --home $HOME/.dhealth --keep-addr-book

SNAP_URL=$(curl -s https://files.nodeshub.online/mainnet/dhealth/snapshot/snap-info.txt | grep "Snapshot_URL" | cut -d ' ' -f 2)
curl ${SNAP_URL} | lz4 -dc - | tar -xf - -C $HOME/.dhealth

mv $HOME/.dhealth/priv_validator_state.json.backup $HOME/.dhealth/data/priv_validator_state.json
sudo systemctl restart dhealth && sudo journalctl -u dhealth -f -o cat

Last updated