Skip to content

Commit

Permalink
initia updated snapshots (#104)
Browse files Browse the repository at this point in the history
* initia updated snapshots

* initia updated sync
  • Loading branch information
karloinv committed May 21, 2024
1 parent 2b785f2 commit 58421fe
Showing 1 changed file with 6 additions and 15 deletions.
21 changes: 6 additions & 15 deletions docs/initia/sync/snapshot.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,29 +17,20 @@ Snapshots are taken every <i>6 hours</i>.


```bash
# download a snapshot
curl <snapshot_url> | tar -Ilz4 -xf - -C $HOME/

sudo systemctl stop initiad

# make a backup
cp $HOME/.initia/data/priv_validator_state.json $HOME/.initia/priv_validator_state.json.backup

# reset your node and download a snapshot
initiad tendermint unsafe-reset-all --home $HOME/.initia --keep-addr-book
wget <snapshot_url> | lz4 -dc - | tar -xf - -C $HOME/.initia
# reset your node and move a snapshot
rm -rf $HOME/.initia/data
mv extra/home/node_initia/.initia/data $HOME/.initia/

# replace the priv_validator_state.json you have backed up
mv $HOME/.initia/priv_validator_state.json.backup $HOME/.initia/data/priv_validator_state.json

sudo systemctl restart initiad && sudo journalctl -u initiad -f -o cat
```

You can also use other snapshots:

#### Trusted Point:
```bash
https://rpc-initia-testnet.trusted-point.com/latest_snapshot.tar.lz4
```

#### kjnodes:
```bash
https://snapshots.kjnodes.com/initia-testnet/snapshot_latest.tar.lz4
```

0 comments on commit 58421fe

Please sign in to comment.