pub async fn bootstrap(
bootstrap_nodes: HashSet<BootNode>,
discv5: &Arc<Discv5>,
) -> Result<(), Error>Expand description
Bootstraps underlying [discv5::Discv5] node with configured peers.
Boot nodes given as an ENR are added to the kbuckets right away. Boot nodes given as an enode need their ENR requested over the wire first, which is driven in the background: an unreachable boot node only answers after the discv5 request timeout, and waiting for that would stall node startup.
Stays async because spawning those requests requires a tokio runtime context.