➡️ v1.2.0 update

STOP SERVICES

sudo systemctl stop 0gchaind geth

UPDATE BINARY

cd $HOME
wget -q https://github.com/0glabs/0gchain-NG/releases/download/v1.2.0/galileo-v1.2.0.tar.gz
tar -xzf galileo-v1.2.0.tar.gz
mv $HOME/galileo-v1.2.0 $HOME/galileo-update-v1.2.0
rm galileo-v1.2.0.tar.gz
chmod +x $HOME/galileo-update-v1.2.0/bin/0gchaind
chmod +x $HOME/galileo-update-v1.2.0/bin/geth
mv $HOME/galileo-update-v1.2.0/bin/geth $HOME/go/bin/geth
mv $HOME/galileo-update-v1.2.0/bin/0gchaind $HOME/go/bin/0gchaind
rm -rf $HOME/galileo-update-v1.2.0
echo "export OG_PORT=56" >> $HOME/.bash_profile
source $HOME/.bash_profile

UPDATE SERVICE

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

[Service]
User=$USER
ExecStart=$HOME/go/bin/0gchaind start \\
    --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.engine.rpc-dial-url=http://localhost:${OG_PORT}551 \\
    --chaincfg.node-api.address 127.0.0.1:${OG_PORT}500 \\
    --home=$HOME/.0gchaind/0g-home/0gchaind-home \\
    --p2p.seeds=85a9b9a1b7fa0969704db2bc37f7c100855a75d9@8.218.88.60:26656 \\
    --p2p.external_address $(curl -s http://ipv4.icanhazip.com):${OG_PORT}656
WorkingDirectory=$HOME/galileo-used
Restart=always
RestartSec=3
LimitNOFILE=65535

[Install]
WantedBy=multi-user.target
EOF

RESTART SERVICES

sudo systemctl daemon-reload
sudo systemctl restart geth
sleep 5
sudo systemctl restart 0gchaind

CHECK LOGS

sudo journalctl -u 0gchaind -u geth -f

DONE!