mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-07 08:52:54 +00:00
Remove LC server config from HTTP API (#7017)
Partly addresses - https://github.com/sigp/lighthouse/issues/6959 Use the `enable_light_client_server` field from the beacon chain config in the HTTP API. I think we can make this the single source of truth, as I think the network crate also has access to the beacon chain config.
This commit is contained in:
@@ -2506,7 +2506,6 @@ fn light_client_server_default() {
|
||||
.with_config(|config| {
|
||||
assert!(config.network.enable_light_client_server);
|
||||
assert!(config.chain.enable_light_client_server);
|
||||
assert!(config.http_api.enable_light_client_server);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -2539,7 +2538,6 @@ fn light_client_http_server_disabled() {
|
||||
.flag("disable-light-client-server", None)
|
||||
.run_with_zero_port()
|
||||
.with_config(|config| {
|
||||
assert!(!config.http_api.enable_light_client_server);
|
||||
assert!(!config.network.enable_light_client_server);
|
||||
assert!(!config.chain.enable_light_client_server);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user