summaryrefslogtreecommitdiffstats
path: root/src/state.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-10-24 13:05:54 +0200
committertv <tv@krebsco.de>2026-10-24 13:05:54 +0200
commit130f1e29366f90d11f0149ecb80d8b154a130ba6 (patch)
tree7f230902f1ea6a388d267efcb3a838d3c257a2d3 /src/state.rs
parentc6921263a2f951b737ce0c2fab01c41500713cdf (diff)
add electorate
For an upcoming change in remake coordination, nodes now maintain their self-assessed liveness in the document.
Diffstat (limited to 'src/state.rs')
-rw-r--r--src/state.rs2
1 files changed, 2 insertions, 0 deletions
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<String>,
+ /// 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<std::sync::Mutex<crate::swarm::stability::Stability>>,
/// Round-trip times to peers (`swarm::rtt`).