diff --git a/infrastructure/running-a-node-validator/setting-up-a-node-validator/node-setup/snapshot.md b/infrastructure/running-a-node-validator/setting-up-a-node-validator/node-setup/snapshot.md index 2aebdb08..8708b22f 100644 --- a/infrastructure/running-a-node-validator/setting-up-a-node-validator/node-setup/snapshot.md +++ b/infrastructure/running-a-node-validator/setting-up-a-node-validator/node-setup/snapshot.md @@ -31,8 +31,7 @@ All of the above steps can also be done manually if you wish. Quicksync / snapshots are provided by [Lavender.five Nodes](https://www.lavenderfive.com/tools/secretnetwork/snapshot). ```bash -curl -L https://snapshots.lavenderfive.com/snapshots/secretnetwork/secretnetwork_18259769.tar.zst | tar -Ilz4 -xf - -C $HOME/.secretd -mv $HOME/.secretd/priv_validator_state.json.backup $HOME/.secretd/data/priv_validator_state.json +wget -O secret.tar.zst https://snapshots.lavenderfive.com/snapshots/secretnetwork/latest.tar.zst ``` ### Install dependencies @@ -42,6 +41,12 @@ sudo apt update sudo apt install snapd zstd pv ``` +### Backup Validator State + +```bash +cp $HOME/.secretd/data/priv_validator_state.json $HOME/.secretd/priv_validator_state.json.backup +``` + ### Delete old data Reset your node. @@ -57,6 +62,12 @@ secretd tendermint unsafe-reset-all --home $HOME/.secretd tar -axf secret.tar.zst -C $HOME/.secretd ``` +### Restore Validator State + +```bash +mv $HOME/.secretd/priv_validator_state.json.backup $HOME/.secretd/data/priv_validator_state.json +``` + ### Download latest addrbook This will ensure you connect to peers quickly.