To configure a node you need 3 files:
- Node configuration
- Genesis configuration
- Prover configuration
This file is a TOML formatted file. You can find some examples here:
config/environments/local/local.node.config.toml
: running a permisionless nodeconfig/environments/mainnet/node.config.toml
config/environments/public/node.config.toml
test/config/test.node.config.toml
: configuration for a trusted node used in CI
For details about the contents you can read the specifications here
This file is used for trusted and for permisionless nodes. In the case of permissionless node you only need to setup next sections:
You could override values with environment variables. The variables needs to have next format:
ZKEVM_NODE_
[<section in uppercase>_
]*<var in uppercase>`
For example:
ZKEVM_NODE_STATE_DB_HOST="localhost"
override value of section [StateDB]
key Host
This file is a JSON formatted file. This contains all the info information relating to the relation between L1 and L2 network's (e.g. contracts, etc..) also known as genesis file
You can find an example here:
config/environments/local/local.genesis.config.json
:
For details about the contents you can read the specifications here
Please check prover repository for further information
Examples:
config/environments/mainnet/prover.config.json
config/environments/testnet/prover.config.json