How to run a Polygon node
System Requirements
Beside the general Prerequisites:
For an Archive node of Polygon mainnet: 8.5TB
5.1TB with
--prune.*.older 15768000
For an Archive node of Mumbai Testnet: 1TB
HDD NOT RECOMMENDED
SSD or NVMe. Do not recommend HDD - on HDD Erigon will always stay N blocks behind the chain tip, but will not fall behind.
Note that SSD performance degrades when close to capacity.
RAM ≥ 32GB, 64-bit architecture
Golang version: 1.20 or newer, GCC 10+
Block Production (PoS Validator) is not supported/tested for Polygon (In Progress)
Install Erigon
For MacOS and Linux, run the following commands to install the latest Erigon version on your machine (if you are on Windows follow first the dedicated installation guide or use Docker).
Clone the Erigon repository to your machine:
Change directory to the Erigon folder:
Now you can compile Erigon:
This should create the binary at ./build/bin/erigon
Start Erigon
To start a Erigon archive node for Polygon mainnet with remote Heimdall:
For a Mumbai testnet archive node with remote Heimdall:
Basic configuration
If you want to store Erigon files in a non-default location, add flag
--datadir=<your_data_dir>
Default data directory is /home/admin/.local/share/erigon.
--prune=hrtc
to run a full node (or pruned node) with latest 90'000 blocks instead of an archive node. If you change your mind remember to delete the--datadir
folder.To increase download speed add
--torrent.download.rate=512mb
(default is 16mb)
To stop the Erigon node you can use the CTRL+C
command. Additional flags can be added to configure the node with several options.
Block Production (PoS Validator) is not supported/tested for Polygon (In Progress)
Last updated