diff options
Diffstat (limited to 'src/transport/libp2p/mod.rs')
| -rw-r--r-- | src/transport/libp2p/mod.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/transport/libp2p/mod.rs b/src/transport/libp2p/mod.rs index 6fea05a..477f1ba 100644 --- a/src/transport/libp2p/mod.rs +++ b/src/transport/libp2p/mod.rs @@ -146,6 +146,8 @@ const MIN_RATE: u64 = 1 << 20; const READS: usize = 32; /// Addresses kept per peer, and peers with addresses at most. const ADDRESSES_PER_PEER: usize = 8; +/// Addresses known not to be a peer's (`Book::wrong`), per peer at most. +const WRONG_PER_PEER: usize = 32; /// Of this node's own, the direct ones (the best first) and those through relays it /// publishes at most (`local_addresses`): a node listening everywhere has many direct /// ones, and those through a relay are what reaches it from behind a NAT. |
