Skip to content

Fix quicksync URL, add validator state backup steps to quicksync instructions #238

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: gitbook
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
Expand All @@ -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.
Expand Down