Sync

Snapshot

Install dependencies

sudo apt update
sudo apt install lz4 -y

Download & Install snapshot

sudo systemctl stop 0gchaind

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

0gchaind tendermint unsafe-reset-all --home $HOME/.0gchain --keep-addr-book
curl http://159.223.148.230:8080/0g/0g-snapshot.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 0gchaind
sudo journalctl -u 0gchaind -f --no-hostname -o cat

Last updated