From 1bbb45bfe7c9c437373aefa08a6a985bc260f520 Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 17 Nov 2026 16:21:09 +0000 Subject: events: the store's summary names the node's party, and whether it votes for it `GET /events` names the party the node is of (`party`, `--store-party`) and whether it votes for it by itself (`votesByItself`, `--store-vote-key`), and so casts a vote by hand (`POST /admin/events/vote`): what a page offering votes through the node asks. --- src/federation/held.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/federation') diff --git a/src/federation/held.rs b/src/federation/held.rs index 985ff45..3ca74a9 100644 --- a/src/federation/held.rs +++ b/src/federation/held.rs @@ -783,6 +783,11 @@ impl Holding { self.party.as_deref() } + /// Whether the node votes for its party by itself (`--store-vote-key`). + pub(crate) fn votes_by_itself(&self) -> bool { + self.voter.is_some() && self.party.is_some() + } + /// Itself, the node keeping some of its neighbours among the members of `parties`, /// with those of its own (`--store-neighbour-parties`). pub(crate) fn near(self, parties: Vec) -> Self { -- cgit v1.3.1