[][src]Function safe_core::client::attempt_bootstrap

pub async fn attempt_bootstrap<'_, '_>(
    qp2p_config: &'_ QuicP2pConfig,
    net_tx: &'_ NetworkTx,
    safe_key: SafeKey
) -> Result<ConnectionManager, CoreError>

Utility function that bootstraps a client to the network. If there is a failure then it retries. After a maximum of three attempts if the boostrap process still fails, then an error is returned.