diff options
| author | tv <tv@krebsco.de> | 2026-10-24 13:05:54 +0200 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-10-24 13:05:54 +0200 |
| commit | c852ea8478963f5298e5b186ca5e1d7284504fd1 (patch) | |
| tree | 6b9405ab6735fe46bad45432e8c1b034b2503237 /src/state.rs | |
| parent | 871c6ac9bc5244875eb1ad09a37359bbf751297b (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.rs | 2 |
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`). |
