mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-20 06:18:31 +00:00
Deprecate http-spec-fork and http-allow-sync-stalled (#5500)
* deprecate flags * fmt * remove backslash * remove hidden flags from the book * Merge branch 'unstable' of https://github.com/sigp/lighthouse into deprecate-http-spec-fork-and-http-allow-sync-stalled * add warn, re-add tests * Apply suggestions from code review * Merge remote-tracking branch 'origin/unstable' into deprecate-http-spec-fork-and-http-allow-sync-stalled * Fix imports
This commit is contained in:
@@ -128,8 +128,12 @@ pub fn get_config<E: EthSpec>(
|
||||
client_config.http_api.allow_origin = Some(allow_origin.to_string());
|
||||
}
|
||||
|
||||
if let Some(fork_name) = clap_utils::parse_optional(cli_args, "http-spec-fork")? {
|
||||
client_config.http_api.spec_fork_name = Some(fork_name);
|
||||
if cli_args.is_present("http-spec-fork") {
|
||||
warn!(
|
||||
log,
|
||||
"Ignoring --http-spec-fork";
|
||||
"info" => "this flag is deprecated and will be removed"
|
||||
);
|
||||
}
|
||||
|
||||
if cli_args.is_present("http-enable-tls") {
|
||||
@@ -148,7 +152,11 @@ pub fn get_config<E: EthSpec>(
|
||||
}
|
||||
|
||||
if cli_args.is_present("http-allow-sync-stalled") {
|
||||
client_config.http_api.allow_sync_stalled = true;
|
||||
warn!(
|
||||
log,
|
||||
"Ignoring --http-allow-sync-stalled";
|
||||
"info" => "this flag is deprecated and will be removed"
|
||||
);
|
||||
}
|
||||
|
||||
client_config.http_api.sse_capacity_multiplier =
|
||||
|
||||
Reference in New Issue
Block a user