aboutsummaryrefslogtreecommitdiffstats
path: root/src/transport/libp2p/book.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
commit7348524430ab2af7ccdcf38bfe76461b476337a5 (patch)
treecbf45f6f50d37c8ade4ca4f74382ecdae7c6cc9b /src/transport/libp2p/book.rs
parent7a5a7408179c5fe9943bd2ce60295e86f1afaa40 (diff)
libp2p: revise published address count/selection
Diffstat (limited to 'src/transport/libp2p/book.rs')
-rw-r--r--src/transport/libp2p/book.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/transport/libp2p/book.rs b/src/transport/libp2p/book.rs
index b2ce7bb..02a6b49 100644
--- a/src/transport/libp2p/book.rs
+++ b/src/transport/libp2p/book.rs
@@ -267,8 +267,8 @@ impl Book {
let address = without_peer(address.clone());
(!address.is_empty() && !is_relayed(&address)).then_some(address)
});
- // First: the member list keeps only so many (`members::MAX_ADDRESSES`), and a
- // node listening everywhere has many.
+ // First: only so many are published (`PUBLISHED_DIRECT`), and a node listening
+ // everywhere has many.
let mut first: Vec<Multiaddr> = Vec::new();
for address in self.mapped.iter().cloned().chain(confirmed) {
if !first.contains(&address) {