Overview

This guide covers the upgrade process from galileo-v1.2.0 to galileo-v1.2.1, which includes:

Prerequisites

https://github.com/0glabs/0gchain-NG/releases/tag/v1.2.1

galileo-v1.2.1.zip

Upgrade Steps

Step 1: Extract New Release

# Extract the new release package
unzip galileo-v1.2.1.zip

# Verify extraction
ls -la galileo-v1.2.1/

Step 2: Stop Services

# Stop consensus layer (0gchaind)
pkill 0gchaind

# Stop execution layer (geth)
pkill geth

Step 3: Backup Your Data

# Create backup directory with timestamp
BACKUP_DIR="backup-v120-$(date +%Y%m%d-%H%M%S)"
mkdir -p $BACKUP_DIR

# Backup execution layer data(geth-home)
cp -r {your_geth_datadir} $BACKUP_DIR/geth-backup

# Backup consensus layer data (0gchaind-home)
cp -r {your_cl_home} $BACKUP_DIR/cl-backup

Step 4: Start Execution Layer

cd galileo-v1.2.1

nohup ./bin/geth --config geth-config.toml \\
     --nat extip:{your_node_ip} \\
     --bootnodes enode://de7b86d8ac452b1413983049c20eafa2ea0851a3219c2cc12649b971c1677bd83fe24c5331e078471e52a94d95e8cde84cb9d866574fec957124e57ac6056699@8.218.88.60:30303 \\
     --datadir {your_geth_datadir} \\
     --networkid 16601 > {your_log_path}/geth.log 2>&1 &

# Verify geth is running
ps aux | grep geth