aboutsummaryrefslogtreecommitdiffstats
path: root/src/transport/identity.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-01 13:20:08 +0100
committertv <tv@krebsco.de>2026-11-01 13:20:08 +0100
commit2ec7d7e0eedf504035417bebcace68f22f38ba10 (patch)
tree65b1b4c6273bc0af4472e9fd0a772e0a7db862ea /src/transport/identity.rs
parent59833811cce25f03efbdc889f806ad75804942ab (diff)
libp2p: revise published address count/selection
Diffstat (limited to 'src/transport/identity.rs')
-rw-r--r--src/transport/identity.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/transport/identity.rs b/src/transport/identity.rs
index a748505..fb1600b 100644
--- a/src/transport/identity.rs
+++ b/src/transport/identity.rs
@@ -58,8 +58,9 @@ const ASK_INTERVAL: Duration = Duration::from_secs(5);
const OTHER_PATHS_ASK_INTERVAL: Duration = Duration::from_secs(60);
/// How long resolving a seed waits for its ME.
const RESOLVE_TIMEOUT: Duration = Duration::from_secs(10);
-/// Addresses kept per node from hints: about one per transport.
-const MAX_HINTS: usize = 8;
+/// Addresses kept per node from hints: as many as a member lists
+/// (`members::MAX_ADDRESSES`).
+const MAX_HINTS: usize = 16;
/// Addresses with a proven node, nodes with hints, and addresses asked, each at most:
/// anyone can send us proofs (keys are free), so the books are bounded.
const MAX_ENTRIES: usize = 4096;