How to run a Gnosis Chain node
System Requirements
Follow the Prerequisites:
For an archive node of Gnosis Chain mainnet: 600GB
For a full node of Chiado testnet : 2GB
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.
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
If you want to be able to send transactions with your wallet and access the Ethereum network directly, and contribute to the network decentralization it is advised to run Erigon with Caplin, the internal Consensus Layer (CL).
Alternatively you can also run Lighthouse or any other Consensus Layer client alongside with Erigon. This will also allow you to access the Ethereum blockchain directly and give you the possibility to stake your GNO and produce blocks.
The command to start a Gnosis Chain archive node is:
The flag --internalcl
trigger Erigon to run with Caplin, the embedded Consensus Layer.
Caplin with Gnosis and Chiado is still under development.
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 with latest 90'000 blocks instead of an archive node. If you change your mind remember to delete the--datadir
folder content.For Gnosis Chain use
--chain=gnosis
, for Chiado testnet use--chain=chiado
.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 Gnosis Chain (In Progress)
Last updated