Auto Update

source <(curl -s <https://raw.githubusercontent.com/zstake-xyz/test/refs/heads/main/0g_da_update.sh>) # da update

Manual Update

  1. Stop service
sudo systemctl stop 0gda && cp $HOME/0g-da-node/config.toml $HOME/da_config.toml.backup
  1. Update
cd $HOME/0g-da-node
git stash
git fetch --all --tags
git checkout 43499a2 
git submodule update --init
cargo build --release
  1. Setup config.toml
mv $HOME/da_config.toml.backup $HOME/0g-da-node/config.toml
  1. ZGS Service Restart
sudo systemctl daemon-reload && sudo systemctl enable 0gda && sudo systemctl start 0gda
  1. Log Check
sudo journalctl -u 0gda -f -o cat