From 41e290716c9ce517597d4b2dec29c8882c36afdb Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 17 Nov 2026 00:09:59 +0000 Subject: 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). --- src/config/mod.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/config') 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 @@ -281,6 +281,14 @@ pub(crate) const OPTIONS: &[OptionSpec] = &[ "With store-follow: follow on any version, not only on one that only moves to a checkpoint. It hands those parties the node's vote, its `false` among it.", ), #[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, @@ -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, #[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()), ]; -- cgit v1.3.1