diff options
| author | tv <tv@krebsco.de> | 2026-11-01 13:20:08 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-01 13:20:08 +0100 |
| commit | 7348524430ab2af7ccdcf38bfe76461b476337a5 (patch) | |
| tree | cbf45f6f50d37c8ade4ca4f74382ecdae7c6cc9b /src/transport/identity.rs | |
| parent | 7a5a7408179c5fe9943bd2ce60295e86f1afaa40 (diff) | |
libp2p: revise published address count/selection
Diffstat (limited to 'src/transport/identity.rs')
| -rw-r--r-- | src/transport/identity.rs | 5 |
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; |
