aboutsummaryrefslogtreecommitdiffstats
path: root/src/access/token.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-17 00:17:21 +0000
committertv <tv@krebsco.de>2026-11-17 01:46:02 +0100
commitac95ca1d8d774e494f5719457a0bba64a3e690b7 (patch)
tree3fb780320f044376308cf477a1005e630425925a /src/access/token.rs
parent65b826f4a5bdd6f2ae2942df4a3975255e33c48f (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/access/token.rs')
-rw-r--r--src/access/token.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/access/token.rs b/src/access/token.rs
index 0b6521a..0920410 100644
--- a/src/access/token.rs
+++ b/src/access/token.rs
@@ -295,7 +295,7 @@ mod tests {
fn store_attack_17() {
let key = NodeKey::from_seed([1; 32]);
let other = NodeKey::from_seed([2; 32]);
- let mut doc = crate::document::events::started("federation", b"a root").unwrap();
+ let mut doc = crate::document::events::started("federation", b"a root", &[]).unwrap();
member(&mut doc, &key);
member(&mut doc, &other);
let token = issue(&key, &claims(&key));