diff options
| -rw-r--r-- | docs/federation.md | 12 | ||||
| -rw-r--r-- | src/federation/attacks.rs | 4 | ||||
| -rw-r--r-- | src/federation/vote.rs | 2 |
3 files changed, 10 insertions, 8 deletions
diff --git a/docs/federation.md b/docs/federation.md index 52b03c9..d0af71f 100644 --- a/docs/federation.md +++ b/docs/federation.md @@ -485,15 +485,17 @@ history alone. As the version naming the current checkpoint is among the next ch heads or in their history, every later version naming one names heads after those, and a node starting from a checkpoint holds what judging them reads. A proposer names the heads it holds as it proposes, so that what was written before is in their history: a node -lacking one takes the proposal once it holds it. A party's client, and a node voting by -itself, back a checkpoint only where everything they held for a while before it was -proposed is among its heads, in their history, or above them, proposals and votes aside, +lacking one takes the proposal once it holds it. A node voting by itself, and a vote by +hand through it, back a checkpoint only where everything the node held for a while before +it was proposed, or held when it started, is among its heads, in their history, or above +them, proposals and votes aside, which lapse with the move: a move refuses what isn't above its heads, and heads a proposer made up, built on little, would take back what was written since, a key set dropping a stolen key among it. A node shows, for a proposed checkpoint, what its parties signed that moving there refuses: writes, key sets and node lists it took that are neither among its heads, in their history, nor above them (`beside` in `GET /events/counts`), which their -parties sign again. This is the voter's rule, by its own clock: nothing +parties sign again. A party's client voting on its own checks no heads: it shows that +before it asks, and its user decides. This is the voter's rule, by its own clock: nothing more is judged. It is a version only where its proposal is above those heads, and a version event writing it is taken only where it is above them too, and so is every vote it is written on ([`store.md`](store.md), [Events](store.md#events)): so moving to the @@ -827,7 +829,7 @@ yet*: what would answer it better, which isn't built. | 65 | After a checkpoint, a party that backed a second proposal once its first was dead, the nays that freed it withheld by those who cast them | Not named: its client keeps those nays with its `true` | unit | | 66 | Two clients of one party back two proposals at once, or its operator votes by hand beside the node that votes for it | Voting twice: a party votes from one client, the node that votes for it where it has one, through which it votes by hand | — | | 67 | A party keeps a proposal alive that nobody else backs, or two parties of seven or more, to hold back automatic checkpoints | Holds back none past a while: a node proposes a checkpoint beside a proposal it wouldn't back that fewer than a third of the parties back, or nobody but its proposer; a new one holds back for a while, once a version for its proposer | sim | -| 68 | A checkpoint proposed at heads that leave out what was written since: a key set dropping a stolen key, say | Not backed: clients and nodes back a checkpoint only where what they held for a while is among its heads, in their history, or above them; a node shows what moving there refuses | unit | +| 68 | A checkpoint proposed at heads that leave out what was written since: a key set dropping a stolen key, say | Not backed by a node voting by itself, nor by a vote by hand through it: only where what it held for a while, or when it started, is among the heads, in their history, or above them. A party's client voting on its own checks no heads: it shows what moving there refuses, as its node does (`beside`), and its user decides | unit | | 69 | A key a version names, stolen, writes its party's node list at a history from before the version naming the party's keys anew, beside the list the party writes under that version, several, for the lowest ID | The party's counts: of a party's lists, those written under the latest version come first | unit | | 70 | A checkpoint's version proposed again, by an event beside its heads | Voters back it all the same, as a proposal lapses with the move, and vote on an event proposing it above its heads, as a node shows them; a version event on votes beside them is refused | unit | | 71 | Merge events under the base revision, signed by a node its party doesn't list, by a party's key, or spelled otherwise | Refused, or none: a merge event is taken only under a revision with merge events, signed by a node its party's node list names, its `merge` `true`; it counts for nothing | unit | diff --git a/src/federation/attacks.rs b/src/federation/attacks.rs index 0f280c5..a56db37 100644 --- a/src/federation/attacks.rs +++ b/src/federation/attacks.rs @@ -13,8 +13,8 @@ use super::store::memory::{Offered, Refusal, Store}; use super::store::{Fold, Id}; use super::version::Version; -/// Rows whose tests wait: what a node or a party's client doesn't do yet, and flooding. -const LATER: &[u32] = &[30, 68]; +/// Rows whose tests wait: flooding. +const LATER: &[u32] = &[30]; fn tv() -> Party { Party::new("tv", 1) diff --git a/src/federation/vote.rs b/src/federation/vote.rs index 29ceb10..1cd955d 100644 --- a/src/federation/vote.rs +++ b/src/federation/vote.rs @@ -541,7 +541,7 @@ mod tests { /// clients build on every head they hold, has the heads in its history, and the move /// refuses it all the same. #[test] - fn a_node_backs_no_checkpoint_that_refuses_what_it_held() { + fn federation_attack_68() { let (tv, lass, _, first, mut store) = three(); let root = store.id(); let head = taken( |
