Snapshot
Snapshots allows a new node to join the network by recovering application state from a backup file. Snapshot contains compressed copy of chain data directory. To keep backup files as small as plausible, snapshot server is periodically beeing state-synced.
Snapshots are taken automatically every 3 hours
pruning: everything | indexer: null | version tag: v22.0.0 |
BLOCK | AGE | DOWNLOAD |
---|---|---|
7835539+ | 3 hours | snapshot |
Instructions
Stop the service and reset the data
sudo systemctl stop zetacored
cp $HOME/.zetacored/data/priv_validator_state.json $HOME/.zetacored/priv_validator_state.json.backup
rm -rf $HOME/.zetacored/data
Download latest snapshot
curl -L https://snapshot-zetachain.cryptech.com.ua/zetachain-snapshot.tar.lz4 | tar -Ilz4 -xf - -C $HOME/.zetacored
mv $HOME/.zetacored/priv_validator_state.json.backup $HOME/.zetacored/data/priv_validator_state.json
Restart the service and check the log
sudo systemctl start zetacored && sudo journalctl -u zetacored -f -o cat