From 023bc8ca4e571b6eb2095b8f1f34ea4363452db9 Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 16 Nov 2026 22:18:31 +0000 Subject: federation: what a node voting by itself decides A party may have one of its nodes vote and propose for it, by rules its operator sets (`docs/federation.md`, Votes a node casts by itself): `federation::vote::decide`, from the node's store, how long it held each event, and its party's record. * Following: `true` on a proposal on the current version where a party it follows voted `true`, `false` where one voted `false`; by default only on a version that only moves to a checkpoint, a `true` as a `false`. * Proposing a checkpoint: once so many events are held beyond its checkpoint, or so long after the store moved there, a version that only moves to a checkpoint at the heads of what it held for a while, at which the current version is current; only where nothing that can still pass is proposed on the current version, but a proposal it wouldn't back that nobody backs but its proposer. It backs what it proposes. It keeps to what a party's client keeps to (`Record::may_vote`), one `true` at a time; and by the voters' rule (`vote::backs_checkpoint`) backs a version naming a checkpoint only where it changes nothing of the current one but its number, what it changes and its checkpoint, and its heads leave out nothing it held for a while before it was proposed. A party that has a node vote by itself votes by hand only through that node, which keeps its one record: `vote::by_hand` decides such a vote by the record and, with a `true`, by the voters' rule. --- src/federation/mod.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/federation/mod.rs') diff --git a/src/federation/mod.rs b/src/federation/mod.rs index 8d059cc..61949fd 100644 --- a/src/federation/mod.rs +++ b/src/federation/mod.rs @@ -25,3 +25,4 @@ pub(crate) mod store; #[cfg(test)] mod vectors; pub(crate) mod version; +pub(crate) mod vote; -- cgit v1.3.1