📷 Snapshot (pruned)
Update every 4 hours
◻️ How to use?
#!/bin/bash
# Install dependencies
sudo apt update -y
sudo apt install -y curl tmux jq lz4 unzip aria2 wget htop net-tools
# Stop services and backup validator state
sudo systemctl stop story story-geth
cp $HOME/.story/story/data/priv_validator_state.json $HOME/.story/story/priv_validator_state.json.backup 2>/dev/null || true
# Disable state sync
sed -i.bak "s|^enable[[:space:]]*=[[:space:]]*true|enable = false|" $HOME/.story/story/config/config.toml
# Download and extract Story snapshot
rm -f $HOME/story-testnet-snapshot.tar.zst
aria2c -x 16 -s 16 -o story-testnet-snapshot.tar.zst "https://snapshots-testnet.unitynodes.app/story-testnet/story-testnet-snapshot.tar.zst"
rm -rf $HOME/.story/story/data
zstd -dc $HOME/story-testnet-snapshot.tar.zst | tar -xf - -C $HOME/.story/story
# Restore validator state
mv $HOME/.story/story/priv_validator_state.json.backup $HOME/.story/story/data/priv_validator_state.json 2>/dev/null || true
# Download and extract Geth snapshot
rm -f $HOME/geth-testnet-snapshot.tar.zst
aria2c -x 16 -s 16 -o geth-testnet-snapshot.tar.zst "https://snapshots-testnet.unitynodes.app/story-testnet/geth-testnet-snapshot.tar.zst"
rm -rf $HOME/.story/geth/aeneid/geth/chaindata
zstd -dc $HOME/geth-testnet-snapshot.tar.zst | tar -xf - -C $HOME/.story/geth/aeneid/geth
# Cleanup and restart
rm -f $HOME/*-testnet-snapshot.tar.zst
sudo systemctl restart story story-geth
sudo journalctl -u story-geth -u story -f◻️ How to check?
Last updated