mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-08 17:26:04 +00:00
Shutdown after sync (#2519)
## Issue Addressed Resolves #2033 ## Proposed Changes Adds a flag to enable shutting down beacon node right after sync is completed. ## Additional Info Will need modification after weak subjectivity sync is enabled to change definition of a fully synced node.
This commit is contained in:
@@ -308,6 +308,19 @@ fn network_import_all_attestations_flag() {
|
||||
.with_config(|config| assert!(config.network.import_all_attestations));
|
||||
}
|
||||
#[test]
|
||||
fn network_shutdown_after_sync_flag() {
|
||||
CommandLineTest::new()
|
||||
.flag("shutdown-after-sync", None)
|
||||
.run()
|
||||
.with_config(|config| assert!(config.network.shutdown_after_sync));
|
||||
}
|
||||
#[test]
|
||||
fn network_shutdown_after_sync_disabled_flag() {
|
||||
CommandLineTest::new()
|
||||
.run()
|
||||
.with_config(|config| assert!(!config.network.shutdown_after_sync));
|
||||
}
|
||||
#[test]
|
||||
fn network_listen_address_flag() {
|
||||
let addr = "127.0.0.2".parse::<Ipv4Addr>().unwrap();
|
||||
CommandLineTest::new()
|
||||
|
||||
Reference in New Issue
Block a user