sawtooth.validator_config module

class sawtooth.validator_config.ListenListEntry(host, port, protocol)

Bases: tuple

Create new instance of ListenListEntry(host, port, protocol)

__getnewargs__()

Return self as a plain tuple. Used by copy and pickle.

__getstate__()

Exclude the OrderedDict from pickling

__repr__()

Return a nicely formatted representation string

host

Alias for field number 0

port

Alias for field number 1

protocol

Alias for field number 2

class sawtooth.validator_config.ListenData(host, port)

Bases: tuple

Create new instance of ListenData(host, port)

__getnewargs__()

Return self as a plain tuple. Used by copy and pickle.

__getstate__()

Exclude the OrderedDict from pickling

__repr__()

Return a nicely formatted representation string

host

Alias for field number 0

port

Alias for field number 1

sawtooth.validator_config.parse_configuration_files(cfiles, search_path)[source]
sawtooth.validator_config.parse_configuration_file(filename)[source]
sawtooth.validator_config.get_config_directory(configs)[source]
sawtooth.validator_config.get_validator_configuration(config_files, options_config, os_name='posix', config_files_required=None)[source]
sawtooth.validator_config.parse_listen_directives(listen_info)[source]

From the configuration object, parses the list of entries for “Listen” and returns a dictionary of mapping from protocol to address/hostname and port.

Parameters:config – The object holding validator configuration
Returns:A dictionary mapping a protocol name to a ListenData named tuple.
class sawtooth.validator_config.ValidatorDefaultConfig(os_name='posix')[source]

Bases: sawtooth.config.Config

class sawtooth.validator_config.CurrencyEnvConfig[source]

Bases: sawtooth.config.EnvConfig