Op-Erigon
Authors: [Godwin]
System Requirements
8-Core CPU
Debian 12/Ubuntu 22.04
=> 16 GB RAM
2 TB+
(NVMe)
In this guide, we cover docker installation of op-erigon and op-nodeto facilitate the node's synchronization on Sepolia Testnet Network. This method is expected to sync an archive node successfully in days or weeks using the snapshot provided by Testinprod-io
Before you start, make sure that you have your own synced Ethereum Sepolia L1 RPC URL and L1 Consensus Layer Beacon endpoint (e.g. Lighthouse Sepolia) ready
Pre-Requisites
sudo apt update -y && sudo apt upgrade -y && sudo apt autoremove -y
β
sudo apt install -y wget curl screen git ufw zstdSetting up Firewall
sudo ufw default deny incoming
sudo ufw default allow outgoing
sudo ufw allow 22/tcp
sudo ufw allow 80
sudo ufw allow 443Enable Firewall
Install Docker
Run this command to remove any conflicting docker
Add Docker's official GPG key:
Add the repository to ppt sources:
Install docker
Setting up a domain name to access RPC
Get the IP address of the host machine, you can use the following command in a terminal or command prompt
Set an A record for a domain, you need to access the domain's DNS settings and create an A record that points to the IP address of the host machine. This configuration allows users to reach your domain by resolving the domain name to the specific IP address associated with your host machine.
Create Optimism Sepolia directory
Create .env file
Paste the following into the file.
Create JWT secret file
Optional/Recommended: Download OptimismSnapshot
To sync from a snapshot, visit Testinprod-io Node Snapshots page to find a latest OptimismSepolia archive for Op-Erigon: https://snapshot.testinprod.io/.
As downloading a snapshot takes some time it is good idea to run it in a screen session
Use aria2c to download the most recent Optimism Sepolia Op-Erigon Archive Snapshot
press ctrl+A and D to return to previous screen and continue installation
You'll need to extract the downloaded snapshot and move its contents to the op-erigon-data directory, where Docker stores persistent data.
If you initially tried to sync the node from scratch and are now trying with a snapshot make sure to empty the destination directory first:
If you haven't started the node yet, create op-erigon-data directory first:
Launch Optimism Sepolia
Copy/Paste into docker-compose.yml:
Monitor Logs
Use docker logs to monitor your op-erigon and op-node. The -f flag ensures you are following the log output
Once your Optimism Sepolia node starts syncing, the logs should look like this:
for op-erigon:
for op-node:
The result will return false if a node is fully synced
Alternatively you can run
and it will return more details about syncing progress
Sync speed will be highly dependent on your Layer 1 RPC
Last updated