From 362633603e9fc1912fd35807da5653dc1273a5be Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 30 Nov 2026 14:31:03 +0000 Subject: swarm: members read of where the node's document keeps them The swarm reads its members, their addresses, aliases, parties, tiers and links, at _continuum/members of the document the node holds. Where the node's document keeps them apart and hands them over as a tree (AppState::entries: a set of events, Holding::entries), they are read of that (view::members_of): by the topology, the node's registration, stability, working links, the state file's seeds, reach, and the API's aliases, dashboards and tier. No node's document does so yet but one whose store a set carries, which none starts as. --- src/api/events.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/api/events.rs') diff --git a/src/api/events.rs b/src/api/events.rs index 1c4b826..e711eac 100644 --- a/src/api/events.rs +++ b/src/api/events.rs @@ -235,7 +235,11 @@ async fn heard(state: &AppState) -> std::collections::HashMap { /// checkpoint, what its parties signed that moving there /// refuses (`beside`, `signed_beside`). async fn counts(State(state): State) -> Response { - let aliases = crate::swarm::members::aliases(&state.doc.read().await.doc); + let entries = state.entries(); + let aliases = crate::swarm::members::aliases(crate::document::view::members_of( + &entries, + &state.doc.read().await.doc, + )); let heard = heard(&state).await; with_store(&state, |store| { let read = store.state(); -- cgit v1.3.1