diff options
| author | tv <tv@krebsco.de> | 2026-12-01 02:45:46 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-12-01 02:45:46 +0100 |
| commit | 34bfcb661ed74bf40809576bbb388362cb7ffaa1 (patch) | |
| tree | 8422db7db396dd4ae83403837cd954a94f882a7a /docs/guides/federation/getting-started.md | |
| parent | 34434f7fd5a6bab1884a63c96679f48045f4bffd (diff) | |
| parent | 6a06bc4a955cdf2b5a183c9ff21e25c79a4e5d9f (diff) | |
Diffstat (limited to 'docs/guides/federation/getting-started.md')
| -rw-r--r-- | docs/guides/federation/getting-started.md | 25 |
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 |
