Snapshots are compressed folders of the database to reach the current block quickly.
You can either chose to use the #id-1-download-the-secret-network-package-installer-for-debian-ubuntu or do it with the #id-1-download-the-secret-network-package-installer-for-debian-ubuntu-1
{% hint style="danger" %}
WARNING: This will erase your node database. If you are already running validator, be sure you backed up your priv_validator_key.json
prior to running the command. The command does not wipe the file. However, you should have a backup of it already in a safe location.
{% endhint %}
wget https://raw.githubusercontent.com/SecretFoundation/docs/main/docs/node-guides/quicksync
bash quicksync
All of the above steps can also be done manually if you wish.
Quicksync / snapshots are provided by Lavender.five Nodes.
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
sudo apt update
sudo apt install snapd zstd pv
Reset your node.
sudo systemctl stop secret-node
secretd tendermint unsafe-reset-all --home $HOME/.secretd
tar -axf secret.tar.zst -C $HOME/.secretd
This will ensure you connect to peers quickly.
wget -O addrbook.json https://snapshots.lavenderfive.com/addrbooks/secretnetwork/addrbook.json
mv addrbook.json $HOME/.secretd/config
sudo systemctl restart secret-node && journalctl -fu secret-node