diff options
| author | tv <tv@krebsco.de> | 2026-11-17 00:17:21 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-17 01:46:02 +0100 |
| commit | ac95ca1d8d774e494f5719457a0bba64a3e690b7 (patch) | |
| tree | 3fb780320f044376308cf477a1005e630425925a /src/federation/properties.rs | |
| parent | 65b826f4a5bdd6f2ae2942df4a3975255e33c48f (diff) | |
document: the changes founding a fork's swarm, built from its root and what it keeps
A fork's root keeps events (`docs/store.md`, On Automerge): they follow its genesis
change in changes of the same writer, built the same way, filled in the order of their
IDs, events going into a change until their bytes there reach 1 MiB, the next event
beginning the next change (`events::founding`). A swarm holding a store starts from all
of them (`events::started`, given the events the root keeps; none for a federation's
root).
Diffstat (limited to 'src/federation/properties.rs')
| -rw-r--r-- | src/federation/properties.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/federation/properties.rs b/src/federation/properties.rs index 36724ff..db11251 100644 --- a/src/federation/properties.rs +++ b/src/federation/properties.rs @@ -403,7 +403,7 @@ fn a_store_read_from_its_document_holds_what_one_given_the_events_alone_holds() |history| { let alone = holds(&history.store(&history.written()).0); let mut rng = Rng::new(history.events.len() as u64); - let started = events::started(Federation::NAME, &history.root).expect("a root"); + let started = events::started(Federation::NAME, &history.root, &[]).expect("a root"); let mut docs = [started.fork(), started.fork()]; let holdings = [Holding::default(), Holding::default()]; let read = |holdings: &[Holding; 2], docs: &[_; 2]| { |
