From 2ec7d7e0eedf504035417bebcace68f22f38ba10 Mon Sep 17 00:00:00 2001 From: tv Date: Sun, 1 Nov 2026 13:20:08 +0100 Subject: libp2p: revise published address count/selection --- src/transport/identity.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/transport/identity.rs') 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; -- cgit v1.3.1