Function hotshot_orchestrator::client::get_complete_config

source ·
pub async fn get_complete_config<K: SignatureKey>(
    client: &OrchestratorClient,
    validator_config: ValidatorConfig<K>,
    libp2p_advertise_address: Option<Multiaddr>,
    libp2p_public_key: Option<PeerId>,
) -> Result<(NetworkConfig<K>, ValidatorConfig<K>, 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