From d46368d5ba8d7a12e657b5f293830b6c0d8dce00 Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 16 Nov 2026 21:26:47 +0000 Subject: federation: events offered to a node's store, and its operator's drops A node's store takes events from elsewhere than its document too: one put at its API is offered to it first (`Holding::offer`), to say what became of it. Its operator has it drop events it took after its checkpoint, with everything built on them (`Holding::drop_taken`), and takes them back (`Holding::allow`), the document's events then offered again (`docs/store.md`, A node's own). After each, what the node keeps of its own is written to its file where it changed, and the members are as the store reads now. --- src/federation/fold.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/federation/fold.rs') diff --git a/src/federation/fold.rs b/src/federation/fold.rs index ad9ff59..8ce6e60 100644 --- a/src/federation/fold.rs +++ b/src/federation/fold.rs @@ -210,7 +210,7 @@ impl State { } /// The node list of `party` by `current`. - fn nodes_of(&self, party: &str, current: &Version) -> Vec { + pub(crate) fn nodes_of(&self, party: &str, current: &Version) -> Vec { let Some(given) = current.parties.get(party) else { return Vec::new(); }; -- cgit v1.3.1