From 160bbde8a2a0926fc5e84911799213457a848340 Mon Sep 17 00:00:00 2001 From: Michael Sproul Date: Fri, 30 Jun 2023 10:29:34 +1000 Subject: [PATCH] Fix db-migration-period default (#4441) * Fix db-migration-period default * Fix version regex --- beacon_node/src/cli.rs | 2 +- common/lighthouse_version/src/lib.rs | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/beacon_node/src/cli.rs b/beacon_node/src/cli.rs index 90f00fdc676..55aedaf3935 100644 --- a/beacon_node/src/cli.rs +++ b/beacon_node/src/cli.rs @@ -697,7 +697,7 @@ pub fn cli_app<'a, 'b>() -> App<'a, 'b> { .help("Specifies the number of epochs to wait between applying each finalization \ migration to the database. Applying migrations less frequently can lead to \ less total disk writes.") - .default_value("4") + .default_value("1") .takes_value(true) ) .arg( diff --git a/common/lighthouse_version/src/lib.rs b/common/lighthouse_version/src/lib.rs index e4cf9c0b80e..cebb1ae8926 100644 --- a/common/lighthouse_version/src/lib.rs +++ b/common/lighthouse_version/src/lib.rs @@ -37,9 +37,8 @@ mod test { #[test] fn version_formatting() { - let re = - Regex::new(r"^Lighthouse/v[0-9]+\.[0-9]+\.[0-9]+(-tree.[0-9])?(-[[:xdigit:]]{7})?\+?$") - .unwrap(); + let re = Regex::new(r"^Lighthouse/v[0-9]+\.[0-9]+\.[0-9]+(-exp)?(-[[:xdigit:]]{7})?\+?$") + .unwrap(); assert!( re.is_match(VERSION), "version doesn't match regex: {}",