aboutsummaryrefslogtreecommitdiffstats
path: root/src/config/file.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-30 14:33:09 +0000
committertv <tv@krebsco.de>2026-11-30 14:33:09 +0000
commit8e97bcfa65e92da21df912cc5e19cf18027b82b8 (patch)
treec0d5b42766e79b2215cb65a0214fc25607d73d5f /src/config/file.rs
parent362633603e9fc1912fd35807da5653dc1273a5be (diff)
swarm: a node whose store a set of events carries
Such a node (Holding::carrying) holds an Automerge document with nothing in it, which nothing passes on, and its set is its document: * swarm::set passes the set on. Where it stands goes in the node's STATUSes as another kind's stamp, and a peer's is given to the set; what the set says besides goes as a SYNC's body; what the set took, of a peer or of the node itself, goes on to the node's other neighbours. What compares stamps for an Automerge document's sake is handed the node's own, and finds nothing to do; the Automerge sync isn't begun. * The node writes its own entry (AppState::mutate_set): what writes protocol data through a view writes to the members' entries as a tree, and what the node's own reads as after is put as its next entry, signed and passed on. Anything else is refused, and so is a write to an Automerge document as such. * An event the node writes (held::write) is offered to the set and passed on; a set lacks nothing of its store to put again. * The node's swarm is its store's, said at its start. A simulation: three such nodes of two parties register, and each holds the others' entries; events put on two of them reach all three, and they come to stand alike, the documents they hold beside empty.
Diffstat (limited to 'src/config/file.rs')
0 files changed, 0 insertions, 0 deletions