Manual upgrade

# stop 0gchaind and 0ggeth
sudo systemctl stop 0gchaind 0ggeth

# download 0gchaind
cd
rm -rf bin
mkdir $HOME/bin
cd bin
wget "https://github.com/0glabs/0gchain-NG/releases/download/v2.0.4/galileo-v2.0.4.tar.gz"
tar -xvzf galileo-v2.0.4.tar.gz
cd galileo-v2.0.4
chmod +x $HOME/bin/galileo-v2.0.4/bin/0gchaind $HOME/bin/galileo-v2.0.4/bin/geth
cp $HOME/bin/galileo-v2.0.4/bin/0gchaind $(which 0gchaind)
cp $HOME/bin/galileo-v2.0.4/bin/geth $(which geth)

# Update 0gchaind systemd file 
sudo tee /etc/systemd/system/0gchaind.service > /dev/null <<EOF
[Unit]
Description=0gchaind Node Service
After=network-online.target

[Service]
User=$USER
WorkingDirectory=$HOME/galileo-used
ExecStart=$(which 0gchaind) start \
--rpc.laddr tcp://0.0.0.0:${OG_PORT}657 \
--chaincfg.chain-spec devnet \
--chaincfg.kzg.trusted-setup-path $HOME/galileo-used/kzg-trusted-setup.json \
--chaincfg.engine.jwt-secret-path $HOME/galileo-used/jwt-secret.hex \
--chaincfg.kzg.implementation=crate-crypto/go-kzg-4844 \
--chaincfg.block-store-service.enabled \
--chaincfg.node-api.enabled \
--chaincfg.node-api.logging \
--chaincfg.node-api.address 0.0.0.0:${OG_PORT}500 \
--chaincfg.engine.rpc-dial-url http://localhost:${OG_PORT}551 \
--pruning=nothing \
--p2p.seeds [email protected]:26656 \
--p2p.external_address $(wget -qO- eth0.me):${OG_PORT}656 \
--home $HOME/.0gchaind/0g-home/0gchaind-home \
--chaincfg.restaking.enabled \
--chaincfg.restaking.symbiotic-rpc-dial-url https://ethereum-holesky-rpc.publicnode.com \
--chaincfg.restaking.symbiotic-get-logs-block-range 1
Restart=always
RestartSec=3
LimitNOFILE=65535

[Install]
WantedBy=multi-user.target
EOF

# start node
sudo systemctl daemon-reload
sudo systemctl restart 0ggeth

sudo systemctl restart 0gchaind && sudo journalctl -u 0gchaind -f
Copyright © 2025 ITRocket. All Rights Reserved.