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.
wget -O secret.tar.lz4 https://snapshots.lavenderfive.com/snapshots/secretnetwork/latest.tar.lz4
sudo apt update
sudo apt install snapd lz4 pv
Reset your node.
sudo systemctl stop secret-node
secretd tendermint unsafe-reset-all --home $HOME/.secretd
lz4 -c -d secret.tar.lz4 | pv -s $(du -sb secret.tar.lz4 | awk '{ print $1 }') | tar -x -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