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/state/mod.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/state') diff --git a/src/state/mod.rs b/src/state/mod.rs index fec164d..d7c80c2 100644 --- a/src/state/mod.rs +++ b/src/state/mod.rs @@ -112,6 +112,8 @@ pub(crate) struct AppState { pub(crate) electorate_window: Duration, /// Chunked transfers served and fetched (`swarm::blob`). pub(crate) blobs: Arc, + /// LINKS asked and answered, for a map of the swarm (`swarm::links`). + pub(crate) links: Arc, /// HTTP API users who may write protocol data through the store API /// (`--protocol-writers`). pub(crate) protocol_writers: Arc>, -- cgit v1.3.1