Skip to content

Configuring Iroha

Iroha is configured via a TOML file and/or Environment Variables.

The path to the configuration file should be passed through the --config CLI argument:

shell
iroha --config iroha_config.toml

If the peer submits the genesis:

shell
# `iroha_config.toml` should contain `genesis.file` and `genesis.private_key`
iroha --config iroha_config.toml --submit-genesis

Structure

  • List links to all modules, giving high-level overview of them
  • List required parameters
Module NameDescriptionRequired fields
BaseBasic, root-level parameterschain_id, public_key, private_key
GenesisGenesis block configurationgenesis.public_key, and possibly genesis.file & genesis.private_key
Network?network.address
Torii?torii.address
Sumeragi?sumeragi.trusted_peers if doesn't submit the genesis
Kura?
Queue?
Snapshot?
Logger?
Telemetry?
Chain Wide?

Example Configuration

  • Show minimal TOML
  • Show same minimal ENVs
  • Refer to peer.template.toml in the repo, or show it here under the spoiler.

Extends feature

  • You can compose configuration files together using the extends root-level field

Required Parameters

Modules Overview

TODO: list each section (sumeragi, torii, kura etc) with links and short explanations of their responsibility.