aboutsummaryrefslogtreecommitdiffstats
path: root/src/config/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/config/mod.rs')
-rw-r--r--src/config/mod.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/config/mod.rs b/src/config/mod.rs
index feb16e3..0e6e1b9 100644
--- a/src/config/mod.rs
+++ b/src/config/mod.rs
@@ -306,6 +306,14 @@ pub(crate) const OPTIONS: &[OptionSpec] = &[
),
#[cfg(feature = "federation")]
option(
+ "store-propose-versions",
+ Kind::Integer,
+ "COUNT",
+ None,
+ "With store-vote-key: propose a checkpoint, as store-propose-events, once this many versions were written since its store's checkpoint: with 1, after every version, so that what keys voting twice could grow beside it at a history from before ends there.",
+ ),
+ #[cfg(feature = "federation")]
+ option(
"store-held-for",
Kind::Duration,
"DURATION",
@@ -835,6 +843,8 @@ pub(crate) struct Settings {
)]
pub(crate) store_propose_every: Option<Duration>,
#[cfg(feature = "federation")]
+ pub(crate) store_propose_versions: Option<u64>,
+ #[cfg(feature = "federation")]
#[serde(
default = "default_store_held_for",
with = "crate::units::duration_option"
@@ -1370,6 +1380,10 @@ 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) => {