mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-19 05:48:31 +00:00
Add flag to disable warning logs for duplicate gossip messages (#5009)
* Add flag to disable warning logs for duplicate gossip messages. * Update Lighthouse book.
This commit is contained in:
@@ -2558,3 +2558,22 @@ fn genesis_state_url_value() {
|
||||
assert_eq!(config.genesis_state_url_timeout, Duration::from_secs(42));
|
||||
});
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn disable_duplicate_warn_logs_default() {
|
||||
CommandLineTest::new()
|
||||
.run_with_zero_port()
|
||||
.with_config(|config| {
|
||||
assert_eq!(config.network.disable_duplicate_warn_logs, false);
|
||||
});
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn disable_duplicate_warn_logs() {
|
||||
CommandLineTest::new()
|
||||
.flag("disable-duplicate-warn-logs", None)
|
||||
.run_with_zero_port()
|
||||
.with_config(|config| {
|
||||
assert_eq!(config.network.disable_duplicate_warn_logs, true);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user