aboutsummaryrefslogtreecommitdiffstats
path: root/src/federation/model.rs
Commit message (Collapse)AuthorAgeFilesLines
* federation: the model, a second reading of the federationtv21 hours1-0/+530
The model (`docs/federation-tests.md`, The harness) reads the federation as `docs/federation.md` says, as plainly as it can: every event judged at its history read anew from the root, the version current there the highest-numbered written one, keys, key sets, node lists, votes, passing and dead, version events and the heads a version may name each worked out from that history alone; a node's own, the first of two versions changing one; and what counts read from everything taken. It keeps nothing but which events it took, and makes no checkpoint: slow and short, it is what the fold is checked against. A test takes it through a version passing, offered last event first.