Snapshots allows a new node to join the network by recovering application state from a backup file. Snapshot contains compressed copy of consensus and execution data directory. To keep backup files as small as plausible, snapshot server is periodically beeing state-synced.
Snapshots are taken automatically every 1 hour starting at 00:30 UTC
Block Height | Age | Download |
---|---|---|
1430009 | 37 minutes | snapshot (consensus - 0.04 GB) and snapshot (geth - 40.8 GB) |
Stop the service
sudo systemctl stop story-testnet.service story-testnet-geth.service
Reset the data and save validator state
cp $HOME/.story/story/data/priv_validator_state.json $HOME/.story/story/priv_validator_state.json.backup
rm -rf $HOME/.story/story/data
rm -rf $HOME/.story/geth/odyssey/geth/chaindata
Download latest snapshot and recover validator state
curl -L https://snapshots.kjnodes.com/story-testnet/snapshot_latest_geth.tar.lz4 | tar -Ilz4 -xf - -C $HOME/.story/geth
curl -L https://snapshots.kjnodes.com/story-testnet/snapshot_latest.tar.lz4 | tar -Ilz4 -xf - -C $HOME/.story/story
mv $HOME/.story/story/priv_validator_state.json.backup $HOME/.story/story/data/priv_validator_state.json
Restart the service and check the log
sudo systemctl start story-testnet.service story-testnet-geth.service
sudo journalctl -fu story-testnet-geth.service -o cat
sudo journalctl -fu story-testnet.service -o cat