From 69d2aace79eb61d800afa3a0779cfe3a9dfe1039 Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 16 Nov 2026 19:35:23 +0000 Subject: access: the policy of a swarm holding a store `{"version": 2, "store": ""}` at the policy's place is a swarm holding a store of that fold (`docs/store.md`, What the document holds). Behind the `federation` feature, a node reads it as `Policy::Store` where the fold is one it has (`federation`) and nothing else is written there: changes judged, and signed, as required; not strict. Its `store` reads so only where it is a string, as `values` of a strict policy. A swarm holds a store from its genesis change only, so `--bootstrap-policy` takes none. Without the feature, a policy of version 2 stays one the node doesn't know. --- src/document/events.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/document/events.rs') diff --git a/src/document/events.rs b/src/document/events.rs index 873d3e3..7b0fe5e 100644 --- a/src/document/events.rs +++ b/src/document/events.rs @@ -9,8 +9,8 @@ //! and it has no message. #![allow(dead_code)] -use automerge::transaction::CommitOptions; use automerge::legacy::OpType; +use automerge::transaction::CommitOptions; use automerge::{ObjId, ObjType, ScalarValue, Value}; use serde_json::Value as JsonValue; -- cgit v1.3.1