Not advised to allow all or unknown IP address to RPC port
Enable Firewall
Download pre migrated l1 data and run the migration script
The script below uses screen to create a session called archive, and download the celo l1 data.
Once the data has been download, you need to extract the data into a directory of your chosen.
Clone the celo l2 docker setup and perform the migration
This will perform a migration of the l1 data to the celo l2.
Setup Celo l2 Archive Node
Install go
Download the Go programming language distribution archive, extracts it to the "/usr/local" directory, and then removes the downloaded archive, effectively installing Go version 1.23.5 on the system.
screen -S archive
aria2c --file-allocation=none -c -x 10 -s 10 https://storage.googleapis.com/cel2-rollup-files/celo/celo-mainnet-migrated-chaindata.tar.zst
# you can use ctrl + A + D to go back to your main terminal session
# screen -r archive to return to the screen window.
mkdir -p /opt/celo-l1
mkdir -p /opt/celo
mkdir -p /opt/celo-migrated-l2/
tar --zstd -xvf celo-mainnet-migrated-chaindata.tar.zst -C /opt/celo-l1/
cd /opt/
# the l2 migration script attachs the directory /celo/chaindata to the source-dir argument.
mv /opt/celo-l1/chaindata/ /opt/celo/
cd
git clone [email protected]:celo-org/celo-l2-node-docker-compose.git
cd celo-l2-node-docker-compose
chmod +x migrate.sh
./migrate.sh pre mainnet /opt/ /opt/celo-migrated-l2/
wget https://go.dev/dl/go1.24.4.linux-amd64.tar.gz
ls /usr/local/
rm -rf /usr/local/go && tar -C /usr/local -xzf go1.24.4.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin
go version
git clone https://github.com/celo-org/op-geth.git
cd op-geth/
make geth
sudo cp ./build/bin/geth /usr/local/bin/cl2-geth
sudo chmod +x /usr/local/bin/cl2-geth
/usr/local/bin/cl2-geth version
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
$HOME/.cargo/env
source $HOME/.cargo/env
cargo install just
git clone https://github.com/celo-org/optimism.git
cd optimism/
make build
sudo cp ./op-node/bin/op-node /usr/local/bin/op-node
op-node --version
cd /opt/
mkdir chainconfig
cd chainconfig/
wget https://storage.googleapis.com/cel2-rollup-files/celo/rollup.json
sudo openssl rand -hex 32 > jwt.hex