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/swarm/bootstrap.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/swarm/bootstrap.rs') diff --git a/src/swarm/bootstrap.rs b/src/swarm/bootstrap.rs index e6d5d21..1deb390 100644 --- a/src/swarm/bootstrap.rs +++ b/src/swarm/bootstrap.rs @@ -333,7 +333,7 @@ impl StoreStart { return Ok(None); }; use crate::federation::store::Fold; - let doc = document::events::started(crate::federation::fold::Federation::NAME, root)?; + let doc = document::events::started(crate::federation::fold::Federation::NAME, root, &[])?; info!(swarm_id = %swarm_id, "Starting the swarm holding the store from its root (--store-root)"); Ok(Some(StartingDocument { doc, -- cgit v1.3.1