Skip to main content

Structs Sync

Chain ID: structstestnet-101 | Node Version: v0.6.0-beta

Snapshot

Install dependencies

sudo apt install lz4 && sudo apt install aria2

Stop Service

sudo systemctl stop structsd

Backup priv_validator_state.json

cp $HOME/.structs/data/priv_validator_state.json $HOME/.structs/priv_validator_state.json.backup

Reset Chain Data

structsd tendermint unsafe-reset-all --home $HOME/.structs --keep-addr-book

Download Snapshot

aria2c -x 8 -s 8 https://snapshot.shazoes.xyz/testnets/snapshot-structs.tar.lz4 && lz4 -c -d snapshot-structs.tar.lz4 | tar -x -C $HOME/.structs && rm snapshot-structs.tar.lz4

Restore Backup

mv $HOME/.structs/priv_validator_state.json.backup $HOME/.structs/data/priv_validator_state.json

Restart Service

sudo systemctl restart structsd && sudo journalctl -fu structsd -o cat