Skip to content

Upgrade node

0G banner”

1. Stop node and update dependencies
Terminal window
sudo systemctl stop zgs
Terminal window
sudo apt-get update
sudo apt-get openssl libssl-dev pkg-config
2. Remove old data & Backup config file
Terminal window
cd $HOME
rm -rf $HOME/0g-storage-node/run/db
mv $HOME/0g-storage-node/run/config-testnet-turbo.toml $HOME/config-testnet-turbo_backup.toml
3. Clone and build new binary
Terminal window
cd $HOME/0g-storage-node
git fetch --all --tags
git checkout v0.8.0
git submodule update --init
cargo build --release
banner
4. Move config file back
Terminal window
mv $HOME/config-testnet-turbo_backup.toml $HOME/0g-storage-node/run/config-testnet-turbo.toml
5. Restart node
Terminal window
sudo systemctl restart zgs && sudo systemctl status zgs
banner
# Use snapshot:

You can use my snapshot to sync faster