Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 1.67 KB

configuration.md

File metadata and controls

42 lines (29 loc) · 1.67 KB

Configuration

To configure a node you need 3 files:

  • Node configuration
  • Genesis configuration
  • Prover configuration

Node Config

This file is a TOML formatted file. You can find some examples here:

  • config/environments/local/local.node.config.toml: running a permisionless node
  • config/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

Network Genesis Config

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

Prover Config

Please check prover repository for further information

Examples:

  • config/environments/mainnet/prover.config.json
  • config/environments/testnet/prover.config.json