aboutsummaryrefslogtreecommitdiffstats
path: root/src/files.rs
Commit message (Collapse)AuthorAgeFilesLines
* federation: the store read from the documenttv22 hours1-1/+2
| | | | | | | | | | | | | | | | A node of a swarm holding a store holds the store, read from its document (`docs/store.md`, What the store takes from the document): `federation::held`. Whenever the document changes, a worker reads the events it holds that the store wasn't offered from it, under the document's lock, and offers them to the store without it, each taken as from anywhere: once its dependencies are held, judged at its history. Another document (a drop, a rejoin) is read as it comes, the store going on. The node reads its store anew from its document whenever it starts, from the root, by what is its own of it: the events it refused by what it took before, and those its operator had it drop, which it keeps in a file (`--store-file`), written whenever that changes, so that a store read anew in another order refuses what it refused before. A file that doesn't read stops the node from starting; without one, a restart may take what it refused.
* node: a swarm holding a store, started from its root or joined by its IDtv22 hours1-0/+14
| | | | | | | | | | | | | | | | | | | | Behind the `federation` feature, two options: * `--store-root PATH` starts a swarm holding a store, or goes on with one, from the store's root, as bytes in the file, which the federation must take as a root. With no document to start on, the node builds the genesis change from it, as every node given the root does, and is ready at once; a document to start on must be of the root's swarm. * `--store-id ID` joins one through seeds by its ID, the root's SHA-256 in hex. An empty document of the first epoch takes as its root only that store's genesis change, built again from the root it holds (`document::events::is_genesis`), whatever peers name: the root pin doesn't wait for seeds, nor is disputed. Either names the swarm the node joins, which a state file must remember too, and can't be combined with the other, nor with what makes a new swarm's first change (`--genesis`, `--bootstrap-users`, `--bootstrap-keys`, `--bootstrap-policy`, `--remake`, `--genesis-root`). The root is read as a file of its own kind (`store`), counted among the node's files.
* allow creating all key filestv2026-11-011-0/+51
|
* move warn_if_readable_by_others to files moduletv2026-10-311-0/+21
|
* tests: unify scratch dir logictv2026-10-311-2/+11
|
* make clippy happy againtv2026-10-261-4/+4
|
* unify lock logictv2026-10-261-3/+2
|
* allow to remake genesistv2026-10-251-1/+9
|
* allow to persist documenttv2026-10-251-5/+36
|
* add files module to consistently track statstv2026-10-251-0/+174