From 01a11cb403af0351411fe79deb49269b667bf881 Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 16 Nov 2026 18:43:42 +0000 Subject: 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. --- src/federation/mod.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/federation/mod.rs') 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; -- cgit v1.3.1