sawtooth.manage.node module

class sawtooth.manage.node.NodeArguments(node_name, http_port=None, gossip_port=None, currency_home=None, config_files=None, genesis=False, ledger_type=None)[source]

Bases: object

Structure to house arguments exposed by our validator cli

Parameters:
  • node_name (str) –
  • http_port (int) –
  • gossip_port (int) –
  • currency_home (str) –
  • config_files (list<str>) –
  • genesis (bool) –
class sawtooth.manage.node.NodeController[source]

Bases: object

create_genesis_block(node_args)[source]
Parameters:node_args (NodeArguments) –
start(node_args)[source]
Parameters:node_args (NodeArguments) –
stop(node_name)[source]
kill(node_name)[source]
get_node_names()[source]
is_running(node_name)[source]
class sawtooth.manage.node.NodeCommandGenerator[source]

Bases: object

get_commands()[source]
class sawtooth.manage.node.NodeCommand[source]

Bases: object

execute(controller)[source]
class sawtooth.manage.node.GenesisCommand(node_args)[source]

Bases: sawtooth.manage.node.NodeCommand

Parameters:node_args (NodeArguments) –
execute(controller)[source]
class sawtooth.manage.node.StartCommand(node_args)[source]

Bases: sawtooth.manage.node.NodeCommand

Parameters:node_args (NodeArguments) –
execute(controller)[source]
class sawtooth.manage.node.StopCommand(node_name)[source]

Bases: sawtooth.manage.node.NodeCommand

execute(controller)[source]
class sawtooth.manage.node.KillCommand(node_name)[source]

Bases: sawtooth.manage.node.NodeCommand

execute(controller)[source]