Skip to content

Commit

Permalink
Fix db-migration-period default (#4441)
Browse files Browse the repository at this point in the history
* Fix db-migration-period default

* Fix version regex
  • Loading branch information
michaelsproul committed Jun 30, 2023
1 parent 6954de6 commit 160bbde
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion beacon_node/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
5 changes: 2 additions & 3 deletions common/lighthouse_version/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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: {}",
Expand Down

0 comments on commit 160bbde

Please sign in to comment.