/// Clears the current bootstrap cache and replaces the peer list with the provided
/// bootstrap nodes.
Clears the current bootstrap cache and replaces the peer list with the provided
bootstrap nodes.
Clears the current bootstrap cache and replaces the peer list with the provided bootstrap nodes .
pub fn update_bootstrap_contacts(&mut self, bootstrap_nodes: &[SocketAddr]) {
        self.qp2p_config.hard_coded_contacts = HashSet::new();
        let bootstrap_cache = self.bootstrap_cache.peers_mut();
        bootstrap_cache.clear();
        bootstrap_cache.extend(bootstrap_nodes);
        self.bootstrap_cache.try_sync_to_disk(true);
    }
pub fn update_bootstrap_contacts ( & mut self , bootstrap_nodes : & [ SocketAddr ] ) { self . qp2p_config . hard_coded_contacts = HashSet :: new ( ) ; let bootstrap_cache = self . bootstrap_cache . peers_mut ( ) ; bootstrap_cache . clear ( ) ; bootstrap_cache . extend ( bootstrap_nodes ) ; self . bootstrap_cache . try_sync_to_disk ( true ) ; }
Clears the current bootstrap cache and replaces the peer list with the provided
bootstrap nodes.
Clears the current bootstrap cache and replaces the peer list with the provided bootstrap nodes .
&mut self
bootstrap_nodes
&[SocketAddr]