[][src]Function sn_client::client::attempt_bootstrap

pub async fn attempt_bootstrap(
    qp2p_config: &QuicP2pConfig,
    keypair: Arc<Keypair>,
    notification_sender: UnboundedSender<ClientError>,
    bootstrap_nodes: Option<HashSet<SocketAddr>>
) -> Result<ConnectionManager, ClientError>

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.