aboutsummaryrefslogtreecommitdiffstats
path: root/src/swarm/peer/members.rs
Commit message (Collapse)AuthorAgeFilesLines
* peer: in a swarm holding a store, its members onlytv3 days1-0/+56
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.