Snapshot

Address Book Updates every 5 hour

wget -O $HOME/.0gchain/config/addrbook.json https://files.nodeshub.online/testnet/0gchain/addrbook.json

Snapshot updated Every 6 hours

# Back up priv_validator_state.json if needed
cp ~/.0gchain/data/priv_validator_state.json  ~/.0gchain/priv_validator_state.json

# On some tendermint chains
0gchaind unsafe-reset-all --home $HOME/.0gchain --keep-addr-book

# On other tendermint chains
0gchaind tendermint unsafe-reset-all --home $HOME/.0gchain --keep-addr-book

curl https://files.nodeshub.online/testnet/og/snapshot/og_snap.tar.lz4 | lz4 -dc - | tar -xf - -C $HOME/.0gchain

mv $HOME/.0gchain/priv_validator_state.json.backup $HOME/.0gchain/data/priv_validator_state.json

sudo systemctl restart 0gchain && sudo journalctl -u 0gchain -f -o cat

Last updated