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.
With their Eggfruit upgrade in September 2024, the Polygon team made the official recommendation that all infra providers will need to begin running the cdk-erigon RPC Node. While zkEVm Node is still operational, it is no longer being maintained by the Polygon team.
Additionally, we found slight POI divergence in our integration testing. Please use the test below as an initial screening when working with this chain.
Indexer Test for X Layer POI
Due to POI divergences found with X Layer, we created an initial test below for indexers that may indicate that their setup allows them to sync other subgraphs and be in majority consensus.
Sync the following subgraph: QmWHYMV9mPZ6zoomwWSZbN24sdGSEQhy1efritMiETpxqS
If there is a match for the Consensus POI provided below, it may indicate that their setup allows them to sync other subgraphs and be in the majority consensus. If they get a match for the Divergent POI, this can be an indication of a data determinism issue.
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