Skip to main content

Snapshot

When a new node joins a network, it can use a snapshot — a compressed backup of the chain's data — to quickly synchronize with the current state. Snapshots expedite the process, reducing the need to download and verify every transaction from the beginning.

📘How to Use

Click on any snapshot to paste it into the code block.

info

Snapshots are taken every 6 hours.

sudo systemctl stop 0gchaind

# make a backup
cp $HOME/.l0gchain/data/priv_validator_state.json $HOME/.0gchain/priv_validator_state.json.backup

# reset your node and download a snapshot
0gchaind tendermint unsafe-reset-all --home $HOME/.0gchain --keep-addr-book
wget <snapshot_url> | lz4 -dc - | tar -xf - -C $HOME/.0gchain

# replace the priv_validator_state.json you have backed up
mv $HOME/.0gchain/priv_validator_state.json.backup $HOME/.0gchain/data/priv_validator_state.json

sudo systemctl restart 0gchaind && sudo journalctl -u 0gchaind -f -o cat

You can also use other snapshots:

Validatorvn:

https://snapshot.validatorvn.com/og/data.tar.lz4

LivenRaven:

http://snapshots.liveraven.net/snapshots/testnet/zero-gravity/zgtendermint_16600-1_latest.tar.lz4