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.
Block Height | Age | Download |
---|---|---|
591358 | 5 hours | snapshot (consensus - 61.36 GB) and snapshot (geth - 15.68 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/iliad/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