mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-20 05:14:35 +00:00
Fix db-migration-period default (#4441)
* Fix db-migration-period default * Fix version regex
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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: {}",
|
||||
|
||||
Reference in New Issue
Block a user