From 22f9ac13bd0089f89cd2dd74932b522ab0c285c0 Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 1 Dec 2026 02:08:53 +0000 Subject: federation: nodes of both kinds pass their sets on to each other, too Two nodes of both kinds say an Automerge document in their handshakes, and synced that alone: what only sets hold, the entries of the nodes on sets, stopped at the first node of both it reached, so that in a swarm larger than its neighbour count the nodes on sets never came to read each other's entries. A node of both now says where its set stands beside each STATUS to a peer on a document; one of both that hears it passes its set on in turn, one on the document alone drops it. A simulation of nine nodes, three of each kind, two neighbours each. --- docs/operations.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'docs/operations.md') diff --git a/docs/operations.md b/docs/operations.md index b12af28..a643c41 100644 --- a/docs/operations.md +++ b/docs/operations.md @@ -179,7 +179,9 @@ of both kinds do with either, and carry between them, so move every node through Between the steps, the swarm works as ever: an event put on any node reaches every node. Within a step, it works as long as the nodes of both kinds reach each other and every other node reaches one of them; `GET /events` on each node shows whether its -store holds what the others' hold (`heads`). +store holds what the others' hold (`heads`). A node on the document alone doesn't see +the nodes on sets alone among the members it reaches (`GET /peers`), nor those it: each +has its neighbours among the nodes of its own kind and of both, until all are of one. A node that joins later is given `--store-id`, `--store-document` and seeds: with nothing of the store, it asks the members it reaches for the root by its name, or, with -- cgit v1.3.1