Configuring SawtoothΒΆ

Each Sawtooth component, such as the validator or the REST API, has an optional configuration file that controls the component’s behavior. You can also specify configuration options on the command line when starting the component. For more information, see CLI Command Reference.

When a Sawtooth component starts, it looks for a TOML configuration file in the config directory (config_dir). By default, configuration files are stored in /etc/sawtooth; see Path Configuration File for more information on the config directory location.

In addition, the Sawtooth log output can be configured with a log config file in TOML or YAML format. By default, Sawtooth stores error and debug log messages for each component in the log directory. For more information, see Log Configuration.

The following sections describe each component’s configuration file.