Snapshot

Snapshot

Stop the service and reset the data

sudo systemctl stop 0gchaind
cp $HOME/.0gchain/data/priv_validator_state.json $HOME/.0gchain/priv_validator_state.json.backup
rm -rf $HOME/.0gchain/data

Download latest snapshot

Latest snapshot taken at last block height

curl -L https://snapshots.kzvn.xyz/zero-gravity/zgtendermint_16600-1_latest.tar.lz4 | tar -Ilz4 -xf - -C $HOME/.0gchain
mv $HOME/.0gchain/priv_validator_state.json.backup $HOME/.0gchain/data/priv_validator_state.json

Restart the service and check the log

sudo systemctl restart 0gchaind && sudo journalctl -u 0gchaind -fn 100 -o cat

Last updated 6 days ago