From 33be6b959c9777c40ca2b16507e9f4f60d6d2d44 Mon Sep 17 00:00:00 2001 From: tv Date: Thu, 19 Nov 2026 14:42:45 +0000 Subject: vote: a second `true` builds on the nays that freed its party The federation takes a party's `true` only where, at its history, every other proposal it backed on that version is dead. A party's client, and a node voting by itself, built a vote on the events proposing what it votes on alone. A proposal made while the party's first `true` was alive, at a history holding it, holds that `true` in its history, and not the nays that ended the first proposal later: the party's `true` on it was refused, though its record cast it. The compromise case: five back X, Y is proposed, X dies, its backers back Y. A vote now builds on one event proposing what it votes on, and on the nays that freed its party (`client::building`), so the first proposal is dead at its history too. One event proposing it is enough, so many proposing it again don't push a vote past the dependencies an event may name. A checkpoint's vote builds on its proposal alone: one of those nays in the history of its heads, named, would put the vote beside them. A party freed only after the heads were named backs that checkpoint not, and its client says so before casting; it backs one proposed after. Row 74 is tested (`federation_attack_74`); federation.md and the guides say so. --- docs/guides/federation/proposing-and-voting.md | 8 ++++++-- docs/guides/federation/voting-by-itself.md | 6 +++--- 2 files changed, 9 insertions(+), 5 deletions(-) (limited to 'docs/guides/federation') diff --git a/docs/guides/federation/proposing-and-voting.md b/docs/guides/federation/proposing-and-voting.md index 9b50e09..e91806c 100644 --- a/docs/guides/federation/proposing-and-voting.md +++ b/docs/guides/federation/proposing-and-voting.md @@ -93,8 +93,12 @@ record before it sends the vote. It casts no vote that would make its party vote * `true` only for a version changing the current one, whose checkpoint names none of the current checkpoint's heads; * one `true` at a time: another `true` on the same version only once the proposal the - party backed is dead. The client fetches the votes that made it so from the node, and - keeps them in the record beside the new `true`. + party backed is dead. The client fetches the votes that made it so from the node, keeps + them in the record beside the new `true`, and builds the `true` on them, so that the + first is dead at its history too: the proposal it backs next may have been proposed at + a history holding its first `true`. A checkpoint's `true` it builds on the proposal + alone, and says when it may be refused so: where the nays came after the heads the + checkpoint names, back the one proposed after. A `true` holds the party until its proposal passes or is dead, and only other parties' nays make it dead. Where ending it would take every party yet to vote, or more, and those diff --git a/docs/guides/federation/voting-by-itself.md b/docs/guides/federation/voting-by-itself.md index 73e9df8..ebde0cf 100644 --- a/docs/guides/federation/voting-by-itself.md +++ b/docs/guides/federation/voting-by-itself.md @@ -79,9 +79,9 @@ while before it was proposed, proposals and votes aside ([`checkpoints.md`](checkpoints.md), [Backing one](checkpoints.md#backing-one)). A vote by hand through it keeps to the same. -It signs its votes on the events proposing what it votes on, of a checkpoint those above -its heads, and its checkpoint proposals on its heads, so that a version event may be -written on them. +It signs its votes on an event proposing what it votes on, of a checkpoint one above its +heads, and on the nays that freed its party, but for a checkpoint; and its checkpoint +proposals on its heads, so that a version event may be written on them. ## Watching it -- cgit v1.3.1