mirror of
https://github.com/sigp/lighthouse.git
synced 2026-07-04 13:24:39 +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 \
|
.help("Specifies the number of epochs to wait between applying each finalization \
|
||||||
migration to the database. Applying migrations less frequently can lead to \
|
migration to the database. Applying migrations less frequently can lead to \
|
||||||
less total disk writes.")
|
less total disk writes.")
|
||||||
.default_value("4")
|
.default_value("1")
|
||||||
.takes_value(true)
|
.takes_value(true)
|
||||||
)
|
)
|
||||||
.arg(
|
.arg(
|
||||||
|
|||||||
@@ -37,9 +37,8 @@ mod test {
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn version_formatting() {
|
fn version_formatting() {
|
||||||
let re =
|
let re = Regex::new(r"^Lighthouse/v[0-9]+\.[0-9]+\.[0-9]+(-exp)?(-[[:xdigit:]]{7})?\+?$")
|
||||||
Regex::new(r"^Lighthouse/v[0-9]+\.[0-9]+\.[0-9]+(-tree.[0-9])?(-[[:xdigit:]]{7})?\+?$")
|
.unwrap();
|
||||||
.unwrap();
|
|
||||||
assert!(
|
assert!(
|
||||||
re.is_match(VERSION),
|
re.is_match(VERSION),
|
||||||
"version doesn't match regex: {}",
|
"version doesn't match regex: {}",
|
||||||
|
|||||||
Reference in New Issue
Block a user