From 8347900a553a3c4c9f9d3fc4a539fd31b41b07d3 Mon Sep 17 00:00:00 2001 From: tv Date: Thu, 19 Nov 2026 14:09:23 +0000 Subject: vote: a checkpoint after every version that changes more, unless told otherwise After a close vote, one key voting twice passes a rival version at a history from before the version that followed, the votes cast before counting with its own, any time until a checkpoint above that version: nodes that took the version refuse it, but one lagging behind, or joining from the root, may take it. A node voting by itself proposed a checkpoint after a version only where its operator set `--store-propose-versions`; now it does unless told otherwise (1 unless set; 0 never so). Versions that change more than moving to a checkpoint are rare, so the cost is a checkpoint each. A default set, store-propose-versions no longer asks for store-vote-key, as store-held-for and store-back-after don't. --- src/config/mod.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/config') diff --git a/src/config/mod.rs b/src/config/mod.rs index caecb49..652a10e 100644 --- a/src/config/mod.rs +++ b/src/config/mod.rs @@ -309,8 +309,8 @@ pub(crate) const OPTIONS: &[OptionSpec] = &[ "store-propose-versions", Kind::Integer, "COUNT", - None, - "With store-vote-key: propose a checkpoint, as store-propose-events, once this many versions changing more than moving to a checkpoint were written since its store's checkpoint: with 1, after every such version, so that what keys voting twice could grow beside it at a history from before ends there.", + Some("1"), + "With store-vote-key: propose a checkpoint, as store-propose-events, once this many versions changing more than moving to a checkpoint were written since its store's checkpoint: with 1, after every such version, so that what keys voting twice could grow beside it at a history from before ends there; with 0, never so.", ), #[cfg(feature = "federation")] option( @@ -1380,10 +1380,6 @@ impl Settings { ("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()), - ( - "store-propose-versions", - self.store_propose_versions.is_some(), - ), ]; match (&self.store_vote_key, &self.store_vote_record) { (Some(_), None) => { -- cgit v1.3.1