From ac95ca1d8d774e494f5719457a0bba64a3e690b7 Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 17 Nov 2026 00:17:21 +0000 Subject: 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). --- src/simtest/holding.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/simtest') diff --git a/src/simtest/holding.rs b/src/simtest/holding.rs index f70ef0d..3e25f20 100644 --- a/src/simtest/holding.rs +++ b/src/simtest/holding.rs @@ -101,7 +101,7 @@ fn of_the_store(config: &mut NodeConfig, id: Id, root: Option<&[u8]>, holding: H config.store = Some(id); config.holding = holding; if let Some(root) = root { - config.initial_doc = events::started(Federation::NAME, root).expect("a root"); + config.initial_doc = events::started(Federation::NAME, root, &[]).expect("a root"); } } @@ -640,7 +640,7 @@ async fn store_attack_10() { vec![("a", holding("tv")), ("b", holding("lass"))], ) .await; - let one = events::started(Federation::NAME, &root).expect("a root"); + let one = events::started(Federation::NAME, &root, &[]).expect("a root"); for name in ["x1", "x2"] { sim.net.take_down(name); let doc = one.clone(); -- cgit v1.3.1