aboutsummaryrefslogtreecommitdiffstats
path: root/docs/guides/federation/when-things-go-wrong.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/guides/federation/when-things-go-wrong.md')
-rw-r--r--docs/guides/federation/when-things-go-wrong.md24
1 files changed, 13 insertions, 11 deletions
diff --git a/docs/guides/federation/when-things-go-wrong.md b/docs/guides/federation/when-things-go-wrong.md
index 8326f72..5bd7f62 100644
--- a/docs/guides/federation/when-things-go-wrong.md
+++ b/docs/guides/federation/when-things-go-wrong.md
@@ -11,7 +11,7 @@ rules are the design's ([`federation.md`](../../federation.md),
Two versions changing one are written only where keys voted twice: a party's `true` and
`false` on one proposal, each shown to some, or its `true` on two. Each node takes the
first it judges and refuses the other, with everything built on it, and keeps so across
-restarts (`--store-file`); its log says so (`Refused an event its history takes, by what
+restarts; its log says so (`Refused an event its history takes, by what
this node took before: kept so`), `continuum-party status` says so, and `GET
/events/refused` lists it under `own`:
@@ -61,7 +61,8 @@ curl -u tv:secret -X POST -H 'Content-Type: application/json' \
The node refuses what it dropped from then on, from whoever brings it, and writes no
version naming what it dropped, until it is allowed again. A node drops only what it
took after its checkpoint: a version that moved it to a checkpoint it undoes only by
-taking a checkpoint its operator pins (`--store-checkpoint`).
+starting from a checkpoint its operator pins (`--store-checkpoint`), anew, without its
+set's file ([`running-a-node.md`](running-a-node.md), [Joining](running-a-node.md#joining)).
The parties answer keys that voted twice by forking, without the party that voted twice
(`continuum-party fork remove lass`) or with its keys named anew (`fork keys lass
@@ -75,7 +76,7 @@ record.
A node stops at a version event writing a version that passed on the version it reads,
which its continuum doesn't read: of a later federation, using what a later continuum
takes, or none at all. It takes nothing and refuses nothing from then on, and votes
-nothing by itself or by hand; what is put through it, it still writes into the document
+nothing by itself or by hand; what is put through it, it holds back and passes on
(`stopped` when put). Its log says so (`The store stopped at an event this continuum
can't judge`), and `GET /events` names the event, why, and how many it holds back:
@@ -94,7 +95,7 @@ makes a version none ([`proposing-and-voting.md`](proposing-and-voting.md),
Upgrade the node to a continuum that reads it: restarted, it reads its store anew and
takes it. Where none does (two thirds passed a proposal that is no version), have the node
drop that event: it goes on under the version before, refuses the event and any writing
-that version, and keeps so (`--store-file`):
+that version, and keeps so across restarts:
```sh
curl -u tv:secret -X POST -H 'Content-Type: application/json' \
@@ -102,11 +103,12 @@ curl -u tv:secret -X POST -H 'Content-Type: application/json' \
# {"dropped":["9a1e…"]}
```
-Allowed again (`/admin/events/allow`), it stops there once more. A node that stopped
-keeps none of it in its store file: restarted, it stops there again. What it holds back
-it leaves out of nothing, as it can't tell which will be taken: it puts it again where its
-document lacks it, and a remake keeps it, so a remake while nodes are stopped loses none
-of what was put since.
+Allowed again (`/admin/events/allow`), it stops there once more. What a node holds back,
+it leaves out of nothing, as it can't tell which will be taken: it passes it on to the
+other nodes, which take it where they read that version, and keeps it in its set's file;
+restarted, it stops there again. A node keeping its store in the Automerge document puts
+what it holds back again where its document lacks it, and a remake keeps it, so a remake
+while nodes are stopped loses none of what was put since.
## A node doing less than it should
@@ -119,8 +121,8 @@ of what was put since.
(`continuum-party nodes --add`), through any member.
* **An event waits** (`waiting` when put): the node lacks an event it builds on. It
takes it once that one arrives.
-* **It doesn't start**: its store file doesn't read, or an option of a swarm that isn't
- federated is set ([`running-a-node.md`](running-a-node.md),
+* **It doesn't start**: the file of its set doesn't read, or an option of a swarm that
+ isn't federated is set ([`running-a-node.md`](running-a-node.md),
[Its options](running-a-node.md#its-options)).
* **A write is refused**: [`writing-and-reading.md`](writing-and-reading.md),
[Why a write is refused](writing-and-reading.md#why-a-write-is-refused).