Create a node.
This function just creates the t
value, it does not call identity_generate
nor config_init
nor run
.
The standard output and standard error output of the node will be logged with prefix name
and color color
.
Default data_dir
is a temporary directory which is always the same for each name
.
Default event_pipe
is a temporary file whose name is derived from name
. It will be created as a named pipe so that node events can be received.
Default value for net_addr
is either 127.0.0.1
if no runner
is provided, or a value allowing the local Tezt program to connect to it if it is.
Default rpc_local
is false
. If rpc_local
is true
, the node will not spawn a process for non-blocking RPCs.
Default values for net_port
or rpc_port
are chosen automatically with values starting from 16384 (configurable with `--starting-port`). They are used by config_init
and by functions from the Client
module. They are not used by run
, so if you do not call config_init
or generate the configuration file through some other means, your node will not listen.
Default value for allow_all_rpc
is true
.
The argument list is a list of configuration options that the node should run with. It is passed to the first run of octez-node config init
. It is also passed to all runs of octez-node run
that occur before octez-node config init
. If Expected_pow
is given, it is also used as the default value for identity_generate
.
If runner
is specified, the node will be spawned on this runner using SSH.