Skip to main content

cached_bootstrap_peers

Function cached_bootstrap_peers 

Source
pub fn cached_bootstrap_peers(
    cache_path: &Path,
    k_value: usize,
) -> Vec<MultiAddr>
Expand description

Load cache addresses to try before configured bootstrap peers.

Returns at most one direct address per cached peer. saorsa-core stops client bootstrap after the client bootstrap target is reached, so every usable cached peer is ordered before the configured fallback peers without forcing all cached peers to be dialed on a healthy warm start.