diff options
| author | tv <tv@krebsco.de> | 2026-11-17 00:09:59 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-17 01:45:53 +0100 |
| commit | 41e290716c9ce517597d4b2dec29c8882c36afdb (patch) | |
| tree | 41ac19e6f9c9ba23448576c906e7a56b32a07517 /src/config | |
| parent | cd47b1fc79893507096d4b6b7e25f47ee8c7cdbb (diff) | |
federation: a rule voting `false` on a checkpoint proposed beside one a node backs
`--store-nay-beside`, for a node voting by itself: where its party backs a proposal on
the current version that can still pass, by its record or by what it votes now, it
votes `false` on every other proposal there that only moves to a checkpoint and can
still pass, once. So, of two checkpoints proposed at once, the one it doesn't back
dies, and its backers are free (`docs/federation.md`, Votes a node casts by itself).
Diffstat (limited to 'src/config')
| -rw-r--r-- | src/config/mod.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/config/mod.rs b/src/config/mod.rs index 7889d7c..ce82ba9 100644 --- a/src/config/mod.rs +++ b/src/config/mod.rs @@ -282,6 +282,14 @@ pub(crate) const OPTIONS: &[OptionSpec] = &[ ), #[cfg(feature = "federation")] option( + "store-nay-beside", + Kind::Flag, + "BOOL", + Some("false"), + "With store-vote-key: where it backs a proposal that can still pass, vote `false` on every other one on the current version that only moves to a checkpoint, so that, of two checkpoints proposed at once, the other dies and its backers are free.", + ), + #[cfg(feature = "federation")] + option( "store-propose-events", Kind::Integer, "COUNT", @@ -759,6 +767,9 @@ pub(crate) struct Settings { #[serde(default)] pub(crate) store_follow_any: bool, #[cfg(feature = "federation")] + #[serde(default)] + pub(crate) store_nay_beside: bool, + #[cfg(feature = "federation")] pub(crate) store_propose_events: Option<usize>, #[cfg(feature = "federation")] #[serde( @@ -1294,6 +1305,7 @@ impl Settings { ("store-vote-record", self.store_vote_record.is_some()), ("store-follow", !self.store_follow.is_empty()), ("store-follow-any", self.store_follow_any), + ("store-nay-beside", self.store_nay_beside), ("store-propose-events", self.store_propose_events.is_some()), ("store-propose-every", self.store_propose_every.is_some()), ]; |
