Skip to main content

get_complete_config

Function get_complete_config 

Source
pub async fn get_complete_config<TYPES: NodeType>(
    client: &OrchestratorClient,
    validator_config: ValidatorConfig<TYPES>,
) -> Result<(NetworkConfig<TYPES>, ValidatorConfig<TYPES>, NetworkConfigSource)>
Expand description

Asynchronously retrieves a NetworkConfig from an orchestrator. The retrieved one includes correct node_index and peer’s public config.

§Errors

If we are unable to get the configuration from the orchestrator