diff options
| author | tv <tv@krebsco.de> | 2026-11-16 18:43:42 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-16 20:08:46 +0100 |
| commit | 01a11cb403af0351411fe79deb49269b667bf881 (patch) | |
| tree | b8b2ee5ba1e4b78065c726a058cc853de2f6b883 /src/federation/mod.rs | |
| parent | cdbfe7e4fb4646a7749d1155d1b784a4ca2a99c2 (diff) | |
federation: the model, a second reading of the federation
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.
Diffstat (limited to 'src/federation/mod.rs')
| -rw-r--r-- | src/federation/mod.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/federation/mod.rs b/src/federation/mod.rs index bbafbc7..aaa8225 100644 --- a/src/federation/mod.rs +++ b/src/federation/mod.rs @@ -13,5 +13,7 @@ pub(crate) mod fold; pub(crate) mod harness; pub(crate) mod jcs; pub(crate) mod keys; +#[cfg(test)] +mod model; pub(crate) mod store; pub(crate) mod version; |
