aboutsummaryrefslogtreecommitdiffstats
path: root/docs/guides/federation/getting-started.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/guides/federation/getting-started.md')
-rw-r--r--docs/guides/federation/getting-started.md25
1 files changed, 16 insertions, 9 deletions
diff --git a/docs/guides/federation/getting-started.md b/docs/guides/federation/getting-started.md
index 33f9181..8b7e5f3 100644
--- a/docs/guides/federation/getting-started.md
+++ b/docs/guides/federation/getting-started.md
@@ -107,11 +107,12 @@ Keep it: a party that loses its record casts nothing on the current version
## Starting
-tv's node starts the federation from the root:
+tv's node starts the federation from the root, and holds it in a set of events, kept in
+a file (`--store-document`):
```sh
-continuum --store-root root --store-party tv --store-file store.json \
- --state-file state.json --document-file document --node-key-file node.key \
+continuum --store-root root --store-party tv --store-document events \
+ --state-file state.json --node-key-file node.key \
--htpasswd htpasswd --mycelium-enable
curl -s -u tv:secret localhost:3000/events
# {"checkpoint":"6d1e…","heads":["6d1e…"],"party":"tv","store":"6d1e…","taken":0,
@@ -122,15 +123,21 @@ lass's node joins it by its ID, through tv's node, one of whose addresses it is
(`addresses` in `GET /admin/stats` there):
```sh
-continuum --store-id 6d1e… --store-party lass --store-file store.json \
- --seeds mycelium:… --state-file state.json --document-file document \
+continuum --store-id 6d1e… --store-party lass --store-document events \
+ --seeds mycelium:… --state-file state.json \
--node-key-file node.key --htpasswd htpasswd --mycelium-enable
```
-Nodes sync with the nodes the parties list, and with no others: both are in the first
-version. A party lists another node of its own by itself, without a vote
+It asks tv's node for the root by its ID, and for everything after. Nodes sync with the
+nodes the parties list, and with no others: both are in the first version. A party lists
+another node of its own by itself, without a vote
([`common-changes.md`](common-changes.md#what-a-party-does-by-itself)).
+A federation that keeps its store in the Automerge document (`--document-file`,
+`--store-file`, no `--store-document`) goes on so, and moves to sets of events node by
+node ([`operations.md`](../../operations.md),
+[Moving to sets of events](../../operations.md#moving-to-sets-of-events)).
+
## Writing and reading
tv writes in its namespace, through its node:
@@ -209,8 +216,8 @@ continuum-party --node http://lass:secret@localhost:3000 --key lass.key \
Once a node holds both votes, it writes the version, and every node takes it:
`continuum-party status` says version 1. makefu's node, started with
-`--store-id 6d1e… --store-party makefu` and a seed, is a member now: the others sync
-with it, and makefu writes in its namespace as tv did.
+`--store-id 6d1e… --store-party makefu --store-document events` and a seed, is a member
+now: the others sync with it, and makefu writes in its namespace as tv did.
## What next