mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-07 00:42:42 +00:00
Add CLI flag for gui requirements (#3731)
## Issue Addressed #3723 ## Proposed Changes Adds a new CLI flag `--gui` which enables all the various flags required for the gui to function properly. Currently enables the `--http` and `--validator-monitor-auto` flags.
This commit is contained in:
@@ -1614,3 +1614,14 @@ fn light_client_server_enabled() {
|
||||
.run_with_zero_port()
|
||||
.with_config(|config| assert_eq!(config.network.enable_light_client_server, true));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn gui_flag() {
|
||||
CommandLineTest::new()
|
||||
.flag("gui", None)
|
||||
.run_with_zero_port()
|
||||
.with_config(|config| {
|
||||
assert!(config.http_api.enabled);
|
||||
assert!(config.validator_monitor_auto);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user