Update storage node 0.8.2

Stop the node

sudo systemctl stop zgs

Backup config.toml

cp $HOME/0g-storage-node/run/config.toml $HOME/zgs-config.toml.backup

Build new binary

cd $HOME/0g-storage-node
git stash
git fetch --all --tags
git checkout 910b5af
git submodule update --init
cargo build --release

Restore config.toml

cp $HOME/zgs-config.toml.backup $HOME/0g-storage-node/run/config.toml

Update boot nodes in config.toml

sed -i 's|^network_boot_nodes = .*|network_boot_nodes = ["/ip4/47.251.117.133/udp/1234/p2p/16Uiu2HAmTVDGNhkHD98zDnJxQWu3i1FL1aFYeh9wiQTNu4pDCgps","/ip4/47.76.61.226/udp/1234/p2p/16Uiu2HAm2k6ua2mGgvZ8rTMV8GhpW71aVzkQWy7D37TTDuLCpgmX"]|g' ~/0g-storage-node/run/config.toml

Restart storage node

sudo systemctl daemon-reload && sudo systemctl enable zgs && sudo systemctl start zgs

Check logs

tail -f ~/0g-storage-node/run/log/zgs.log.$(TZ=UTC date +%Y-%m-%d)

Last updated