The Erigon XLayer archive node has a size of 36GB on August 9th, 2024
Setup production Erigon
This guide covers the installation of CDK-Erigon, a fork of Erigon, optimized for syncing with the XLayer network.
CAUTION: During the Chain Integration Process, InfraDAO noticed some POI divergencies when using CDK-Erigon. Consider following the the ZKNODE (clickable) guide instead.
Not advised to allow all or unknown IP address to RPC port
Enable Firewall
sudoufwenable
To check the status of UFW and see the current rules
sudoufwstatusverbose
Install GO
Go version 1.20.7 is required to build cdk-rigon
sudowgethttps://go.dev/dl/go1.20.7.linux-amd64.tar.gz&&sudorm-rf/usr/local/go&&sudotar-C/usr/local-xzfgo1.20.7.linux-amd64.tar.gz&&rmgo1.20.7.linux-amd64.tar.gzecho'export PATH=$PATH:/usr/local/go/bin:/root/.local/bin'>>/root/.bashrcsource/root/.bashrc#verify Go installationgoversion
Build Erigon RPC Node
Before you start, make sure that you have your own synced Ethereum L1 RPC URL ready.
Clone the Erigon repository and build cdk-erigon. Check the latest version at releases page.
gitclonehttps://github.com/0xPolygonHermez/cdk-erigon.gitcdcdk-erigongitcheckoutv1.2.24#[checkout the latest release version]makecdk-erigon
sudosystemctldaemon-reload#refresh systemd configuration when changes madesudosystemctlenablecdk-erigon.service#enable cdk-erigon service at system startupsudosystemctlstartcdk-erigon.service#start cdk-erigonsudonano/etc/systemd/system/cdk-erigon.service#make changes in cdk-erigon.service file
Run curl command in the terminal to check the status of your node