From 0bb7a35141c12a58001b481851d33291d2a6ec98 Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 30 Oct 2026 17:36:23 +0100 Subject: add links messages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Introduce two new wire messages, LINKS and LINKS_REPLY (swarm::links). A member answers with its links: for each peer, the transport, whether it’s relayed, the RTT, and whether it’s dormant. It answers members only, at most every 5 s. This bumps wire::VERSION to 7. Every build answers, with or without the feature, so every node needs this patch before the map shows anything beyond its own node. --- src/node.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/node.rs') diff --git a/src/node.rs b/src/node.rs index 8aab601..be722e6 100644 --- a/src/node.rs +++ b/src/node.rs @@ -114,6 +114,7 @@ impl Node { alias: config.alias, electorate_window: config.electorate_window, blobs: Arc::new(swarm::blob::Blobs::new(config.blob_chunk_bytes)), + links: Default::default(), protocol_writers: Arc::new(config.protocol_writers), state_file: config.state_file, document_file: config.document_file, -- cgit v1.3.1