From c852ea8478963f5298e5b186ca5e1d7284504fd1 Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 24 Oct 2026 13:05:54 +0200 Subject: add electorate For an upcoming change in remake coordination, nodes now maintain their self-assessed liveness in the document. --- src/state.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/state.rs') diff --git a/src/state.rs b/src/state.rs index 7517b72..25c734e 100644 --- a/src/state.rs +++ b/src/state.rs @@ -595,6 +595,8 @@ pub(crate) struct AppState { pub(crate) neighbours_k: usize, /// Our alias (`--alias`), published in the member list (`swarm::members`). pub(crate) alias: Option, + /// Members alive within this window vote on remakes (`--electorate-window-days`). + pub(crate) electorate_window: Duration, /// Our own connectivity record and stability tier (`swarm::stability`). pub(crate) stability: Arc>, /// Round-trip times to peers (`swarm::rtt`). -- cgit v1.3.1