snapshot


description: Catch the latest block faster by using our daily snapshots.

Snapshot

Snapshots allows a new node to join the network by recovering application state from a backup file. Snapshot contains compressed copy of chain data directory. To keep backup files as small as plausible, snapshot server is periodically beeing state-synced.

Snapshots are taken automatically every 12 hours

pruning: 107/0/13 | indexer: null | version tag: protocol/v5.2.0

Instructions

Quick setup

One liner to get moving quickly

sudo systemctl stop dydxprotocold
cp $HOME/.dydxprotocol/data/priv_validator_state.json $HOME/.dydxprotocol/priv_validator_state.json.backup
rm -rf $HOME/.dydxprotocol/data
curl -L https://snapshots.lavenderfive.com/snapshots/dydx/dydx_26835068.tar.lz4 | tar -Ilz4 -xf - -C $HOME/.dydxprotocol
mv $HOME/.dydxprotocol/priv_validator_state.json.backup $HOME/.dydxprotocol/data/priv_validator_state.json
sudo systemctl start dydxprotocold && sudo journalctl -u dydxprotocold -f --no-hostname -o cat

Stop dydxprotocold and reset the data

sudo systemctl stop dydxprotocold
cp $HOME/.dydxprotocol/data/priv_validator_state.json $HOME/.dydxprotocol/priv_validator_state.json.backup
rm -rf $HOME/.dydxprotocol/data

Download latest snapshot

curl -L https://snapshots.lavenderfive.com/snapshots/dydx/dydx_26835068.tar.lz4 | tar -Ilz4 -xf - -C $HOME/.dydxprotocol
mv $HOME/.dydxprotocol/priv_validator_state.json.backup $HOME/.dydxprotocol/data/priv_validator_state.json

Restart dydxprotocold and check the log

sudo systemctl start dydxprotocold && sudo journalctl -u dydxprotocold -f --no-hostname -o cat

Last updated