mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
docs(net): update best_unconnected docs (#670)
This commit is contained in:
@ -455,7 +455,11 @@ impl PeersManager {
|
||||
|
||||
/// Returns the idle peer with the highest reputation.
|
||||
///
|
||||
/// Peers with a `forkId` are considered better than peers without.
|
||||
/// Peers that are `trusted`, see [PeerKind], are prioritized as long as they're not currently
|
||||
/// marked as banned. Peers with a `forkId` are considered better than peers without.
|
||||
///
|
||||
/// If `connect_trusted_nodes_only` is enabled, see [PeersConfig], then this will only consider
|
||||
/// `trusted` peers.
|
||||
///
|
||||
/// Returns `None` if no peer is available.
|
||||
fn best_unconnected(&mut self) -> Option<(PeerId, &mut Peer)> {
|
||||
|
||||
Reference in New Issue
Block a user