Quicksync / Snapshot
Snapshots are compressed folders of the database to reach the current block quickly.
You can either chose to use the #Quicksync / Snapshot script or do it with the #Manual Method
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.
Quicksync / Snapshot script
Download the quicksync script
wget https://raw.githubusercontent.com/SecretFoundation/docs/main/docs/node-guides/quicksyncRun the quicksync script
bash quicksyncManual Method
All of the above steps can also be done manually if you wish.
Download snapshot
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.jsonInstall dependencies
sudo apt update
sudo apt install snapd zstd pvDelete old data
Reset your node.
sudo systemctl stop secret-node
secretd tendermint unsafe-reset-all --home $HOME/.secretdDecompress snapshot
tar -axf secret.tar.zst -C $HOME/.secretdDownload latest addrbook
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/configRestart service and open logs
sudo systemctl restart secret-node && journalctl -fu secret-nodeLast updated
Was this helpful?