From 0e1238015e55854515a4cbc6b6ef757792e7d804 Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 16 Nov 2026 20:48:03 +0000 Subject: peer: in a swarm holding a store, its members only A node of a swarm holding a store syncs with its members only (`docs/store.md`, Members): the nodes its store names, each with the party its handshakes name, as the store reads now. A handshake from any other goes unanswered, and what the node had with it ends, as with a banned node; so does what it had with a member at its next message, once the store names it no more (`swarm::peer::members`). The party a handshake names is kept with the peer. While a node holds no store yet, joining, it can't tell, and takes everyone of its swarm: its seeds, which take it only where its party lists it. A node says whether it is a member itself, as its store reads, when that changes. --- src/swarm/peer/mod.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/swarm/peer/mod.rs') diff --git a/src/swarm/peer/mod.rs b/src/swarm/peer/mod.rs index 1826ec6..0b5500d 100644 --- a/src/swarm/peer/mod.rs +++ b/src/swarm/peer/mod.rs @@ -6,6 +6,7 @@ //! re-handshake. //! * `epoch`: the epochs peers advertise. //! * `admit`: admission with a swarm key. +//! * `members`: in a swarm holding a store, its members only. //! * `forget`: swarm-wide forget records. //! * `worker`: the periodic peer worker. //! * `inbound`: dispatch of inbound messages. @@ -18,6 +19,8 @@ mod handshake; mod inbound; mod keepalive; mod lanes; +#[cfg(feature = "federation")] +mod members; mod worker; pub(crate) use forget::{affects_forget_records, forget_unless_alive, forgotten_path}; -- cgit v1.3.1