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
Select a snapshot from the list to view the relevant configuration commands.
# Install required dependencies
sudo apt-get install wget lz4 -y
# Stop your story-geth and story nodes
sudo systemctl stop story-geth
sudo systemctl stop story
# Back up your validator state
sudo cp $HOME/.story/story/data/priv_validator_state.json $HOME/.story/priv_validator_state.json.backup
# Delete previous geth chaindata and story data folders
sudo rm -rf $HOME/.story/geth/odyssey/geth/chaindata
sudo rm -rf $HOME/.story/story/data
# Download story-geth and story snapshots
wget -O geth_snapshot.lz4 https://snapshots2.mandragora.io/story/geth_snapshot.lz4
wget -O story_snapshot.lz4 https://snapshots2.mandragora.io/story/story_snapshot.lz4
# Decompress story-geth and story snapshots
lz4 -c -d geth_snapshot.lz4 | tar -xv -C $HOME/.story/geth/odyssey/geth
lz4 -c -d story_snapshot.lz4 | tar -xv -C $HOME/.story/story
# Delete downloaded story-geth and story snapshots
sudo rm -v geth_snapshot.lz4
sudo rm -v story_snapshot.lz4
# Restore your validator state
sudo cp $HOME/.story/priv_validator_state.json.backup $HOME/.story/story/data/priv_validator_state.json
# Start your story-geth and story nodes
sudo systemctl start story-geth
sudo systemctl start story