💻Baremetal
Authors: [payne | stakesquid]
System Requirements
8+ cores CPU
Debian 12/Ubuntu 22.04
=> 16 GB RAM
2TB+ op-erigon 3.5TB+ l2geth (legacy)
Optimism 🔵
Before you start, make sure that you have your own synced Ethereum L1 RPC URL (e.g. Erigon) and L1 Consensus Layer Beacon endpoint (e.g. Lighthouse) ready.
To serve pre-bedrock eth_calls, you will also need an l2geth (legacy) node. Instructions for how to set up an l2geth node can be found in L2-GETH
Pre-Requisites
sudo apt update -y && sudo apt upgrade -y && sudo apt autoremove -y
sudo apt install -y git make wget gcc pkg-config libusb-1.0-0-dev libudev-dev jq gcc g++ curl libssl-dev screen apache2-utils build-essential pkg-configSetting up Firewall
Set explicit default UFW rules
sudo ufw default deny incoming
sudo ufw default allow outgoingAllow SSH
Allow remote RPC connections with Optimism Node
Not advised to allow all or unknown IP address to RPC port
Enable Firewall
Download a snapshot
Snapshots URL: https://snapshot.testinprod.io/
Create a directory and start downloading an archive in screen session as it takes ~9 hours
Compile Op-node
Required Software Dependencies
go
^1.21
go version
node
^20
node --version
pnpm
^8
pnpm --version
foundry
^0.2.0
forge --version
make
^4
make --version
yarn
1.22.21
yarn --version
nvm
0.39.3
nvm --verison
Install go
Install nvm
Download foundry
Install foundry
Install node and yarn
Check if go and all dependancies are installed
Create directories
Build op-node
#The binary is built at /root/github/optimism/op-node/bin/op-node
Create systemd service
You'll need your own synced Ethereum L1 RPC URL (e.g. Erigon) and L1 Consensus Layer Beacon endpoint (e.g. Lighthouse) in order to run optimism
Compile Erigon
Create JWT secret file and download genesis and rollup .json files
Create systemd service
Sync using downloaded Snapshot
#Unzipping takes ~3-4 hrs so you can go touch some grass
Consider switching screen by pressingctrl A+Dto allow a process run in the background
After extracting is done move the contents of geth directory into op-erigon data directoy:
Start op-erigon
Last updated
Was this helpful?