From 7f31a5bca06dccdd4edaed6699bc6e6f479a2b27 Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 16 Nov 2026 19:30:05 +0000 Subject: store: a fold names itself A swarm holding a store names its fold in its policy, `{"version": 2, "store": ""}`: the fold's name is a constant of the fold, `federation` for the federation and `test` for the fold made for the store's tests. --- src/federation/fold.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/federation/fold.rs') diff --git a/src/federation/fold.rs b/src/federation/fold.rs index 5f794e6..ad9ff59 100644 --- a/src/federation/fold.rs +++ b/src/federation/fold.rs @@ -514,6 +514,8 @@ impl State { impl Fold for Federation { type State = State; + const NAME: &'static str = "federation"; + const LARGEST: usize = event::LARGEST; fn dependencies(event: &[u8]) -> Option> { -- cgit v1.3.1