pub fn load_node_config(
path: Option<&str>,
port: Option<u16>,
) -> Result<NodeConfig, Error>Expand description
Load a node configuration from the given path or from the NODE_CONFIG
environment variable.
If the file does not exist, a default NodeConfig is returned. When a
port is provided in this case, the returned config will have its
network_listen_address set to "/ip4/0.0.0.0/tcp/<port>".