mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-07 00:42:42 +00:00
merge capella
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "lighthouse"
|
||||
version = "3.3.0"
|
||||
version = "3.4.0"
|
||||
authors = ["Sigma Prime <contact@sigmaprime.io>"]
|
||||
edition = "2021"
|
||||
autotests = false
|
||||
@@ -24,8 +24,6 @@ gnosis = []
|
||||
slasher-mdbx = ["slasher/mdbx"]
|
||||
# Support slasher LMDB backend.
|
||||
slasher-lmdb = ["slasher/lmdb"]
|
||||
# Support for withdrawals consensus processing logic.
|
||||
withdrawals-processing = ["beacon_node/withdrawals-processing"]
|
||||
|
||||
[dependencies]
|
||||
beacon_node = { "path" = "../beacon_node" }
|
||||
|
||||
@@ -1237,6 +1237,31 @@ fn validator_monitor_file_flag() {
|
||||
assert_eq!(config.validator_monitor_pubkeys[1].to_string(), "0xbeefdeadbeefdeaddeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef");
|
||||
});
|
||||
}
|
||||
#[test]
|
||||
fn validator_monitor_metrics_threshold_default() {
|
||||
CommandLineTest::new()
|
||||
.run_with_zero_port()
|
||||
.with_config(|config| {
|
||||
assert_eq!(
|
||||
config.validator_monitor_individual_tracking_threshold,
|
||||
// If this value changes make sure to update the help text for
|
||||
// the CLI command.
|
||||
64
|
||||
)
|
||||
});
|
||||
}
|
||||
#[test]
|
||||
fn validator_monitor_metrics_threshold_custom() {
|
||||
CommandLineTest::new()
|
||||
.flag(
|
||||
"validator-monitor-individual-tracking-threshold",
|
||||
Some("42"),
|
||||
)
|
||||
.run_with_zero_port()
|
||||
.with_config(|config| {
|
||||
assert_eq!(config.validator_monitor_individual_tracking_threshold, 42)
|
||||
});
|
||||
}
|
||||
|
||||
// Tests for Store flags.
|
||||
#[test]
|
||||
@@ -1697,3 +1722,22 @@ fn gui_flag() {
|
||||
assert!(config.validator_monitor_auto);
|
||||
});
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn optimistic_finalized_sync_default() {
|
||||
CommandLineTest::new()
|
||||
.run_with_zero_port()
|
||||
.with_config(|config| {
|
||||
assert!(config.chain.optimistic_finalized_sync);
|
||||
});
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn disable_optimistic_finalized_sync() {
|
||||
CommandLineTest::new()
|
||||
.flag("disable-optimistic-finalized-sync", None)
|
||||
.run_with_zero_port()
|
||||
.with_config(|config| {
|
||||
assert!(!config.chain.optimistic_finalized_sync);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user