Bitsong Snapshots

To help validators to deploy or recover quickly,
we provide daily archives of the Blockchain from high-performance infrastructure.

FileDateSizeHeightBinaryDownload

Snapshots instructions

Quick instructions

systemctl stop bitsong.service
cp $HOME/.bitsongd/data/priv_validator_state.json $HOME/.bitsongd/priv_validator_state.json.backup
mv $HOME/.bitsongd/data $HOME/.bitsongd/data.backup

curl -L ... | tar -Ilz4 -xf - -C $HOME/.bitsongd

cp $HOME/.bitsongd/priv_validator_state.json.backup $HOME/.bitsongd/data/priv_validator_state.json
systemctl start bitsong.service

Detailled instructions

1. Install dependencies if needed
sudo apt install curl tar jq lz4 -y
2. Stop the node
systemctl stop bitsong.service
3. Remove old data
# Always backup priv_validator_state.json on validator node, to avoid double-sign
cp $HOME/.bitsongd/data/priv_validator_state.json $HOME/.bitsongd/priv_validator_state.json.backup

If possible, keep this backup until your node is running
mv $HOME/.bitsongd/data $HOME/.bitsongd/data.backup
4. Download snapshot
curl -L ... | tar -Ilz4 -xf - -C $HOME/.bitsongd

# Always restore priv_validator_state.json on validator node, to avoid double-sign
cp $HOME/.bitsongd/priv_validator_state.json.backup $HOME/.bitsongd/data/priv_validator_state.json
5. Start the node
systemctl start bitsong.service
6. Monitor your node
journalctl -u bitsong

# Is your node catching up?
curl http://localhost:26657/status | jq .result.sync_info
7. Clean-up
rm -rf $HOME/.bitsongd/data.backup