pub async fn get_complete_config<TYPES: NodeType>(
client: &OrchestratorClient,
validator_config: ValidatorConfig<TYPES>,
libp2p_advertise_address: Option<Multiaddr>,
libp2p_public_key: Option<PeerId>,
) -> 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