Function multi_validator_libp2p::infra::load_config_from_file

source ·
pub fn load_config_from_file<TYPES: NodeType>(
    config_file: &str,
) -> NetworkConfig<TYPES::SignatureKey>
Expand description

Reads a network configuration from a given filepath

§Panics

if unable to convert the config file into toml

§Note

This derived config is used for initialization of orchestrator, therefore known_nodes_with_stake will be an initialized vector full of the node’s own config.