pub fn sync_with_found(
library: &mut Library,
network: &Network,
peers: Vec<Replica>,
found: &BTreeSet<[u8; 32]>,
now: &dyn Fn() -> u64,
rng: &mut impl CryptoRng,
) -> Vec<SyncedWith>Expand description
Syncs once with each of peers whose endpoint is among those found on the network,
one after the other, as sync_with_others does once it found them: so that a program
can look for the others with the library closed, with Library::peers and
Network::find. A peer that was not found is in the result as
NodeError::NotFound.