Op-Erigon
Authors: [man4ela | catapulta.eth]
System Requirements
8-Core CPU
Debian 12/Ubuntu 22.04
=> 16 GB RAM
2 TB+
(NVMe)
Base is a secure, low-cost Ethereum L2 built on Optimismβs open-source OP Stack. 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 ~week 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 Base Sepolia directory
Create .env file
Paste the following into the file.
Make sure L1_BEACON endpoint provides full historical blobs data. Otherwise you won't be able to sync
Create JWT secret file
Optional/Recommended: Download Base Snapshot
This is an optional step based on whether you want to sync the node from scratch or sync the node from a snapshot. Based on InfraDAOβs experience, we recommend downloading a snapshot and syncing the node from that snapshot. Syncing the node from scratch will take weeks while the op-erigon snapshot requires much shorter time to download, some time to extract, and about a week to sync from that point.
To sync from a snapshot, visit Testinprod-io Node Snapshots page to find a latest Base Sepolia archive for Op-Erigon: https://snapshot.testinprod.io/.
Testinprod doesn't update Base Sepolia snapshot regularly so expect about 3 weeks to sync a node from the most recent snapshot available
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 Base 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 Base Sepolia
IMPORTANT:
See avaialable up-to-date images for op-erigon here: https://hub.docker.com/r/testinprod/op-erigon/tags
for op-node here: https://github.com/ethereum-optimism/optimism/releases
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 Base 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
References
Last updated