mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-21 22:04:44 +00:00
Remove deprecated flags in prep for v6.0.0 (#6490)
* Delete previously deprecated flags * Update CLI docs * Remove deprecated BN flags * Use ethereum-package main branch * Delete env_log/-l
This commit is contained in:
@@ -401,15 +401,6 @@ pub fn cli_app() -> Command {
|
||||
.help_heading(FLAG_HEADER)
|
||||
.display_order(0)
|
||||
)
|
||||
.arg(
|
||||
Arg::new("self-limiter")
|
||||
.long("self-limiter")
|
||||
.help("This flag is deprecated and has no effect.")
|
||||
.hide(true)
|
||||
.action(ArgAction::SetTrue)
|
||||
.help_heading(FLAG_HEADER)
|
||||
.display_order(0)
|
||||
)
|
||||
.arg(
|
||||
Arg::new("disable-self-limiter")
|
||||
.long("disable-self-limiter")
|
||||
@@ -525,16 +516,6 @@ pub fn cli_app() -> Command {
|
||||
.action(ArgAction::Set)
|
||||
.display_order(0)
|
||||
)
|
||||
.arg(
|
||||
Arg::new("http-spec-fork")
|
||||
.long("http-spec-fork")
|
||||
.requires("enable_http")
|
||||
.value_name("FORK")
|
||||
.help("This flag is deprecated and has no effect.")
|
||||
.hide(true)
|
||||
.action(ArgAction::Set)
|
||||
.display_order(0)
|
||||
)
|
||||
.arg(
|
||||
Arg::new("http-enable-tls")
|
||||
.long("http-enable-tls")
|
||||
@@ -564,16 +545,6 @@ pub fn cli_app() -> Command {
|
||||
.action(ArgAction::Set)
|
||||
.display_order(0)
|
||||
)
|
||||
.arg(
|
||||
Arg::new("http-allow-sync-stalled")
|
||||
.long("http-allow-sync-stalled")
|
||||
.action(ArgAction::SetTrue)
|
||||
.help_heading(FLAG_HEADER)
|
||||
.requires("enable_http")
|
||||
.help("This flag is deprecated and has no effect.")
|
||||
.hide(true)
|
||||
.display_order(0)
|
||||
)
|
||||
.arg(
|
||||
Arg::new("http-sse-capacity-multiplier")
|
||||
.long("http-sse-capacity-multiplier")
|
||||
@@ -1291,14 +1262,6 @@ pub fn cli_app() -> Command {
|
||||
.action(ArgAction::Set)
|
||||
.display_order(0)
|
||||
)
|
||||
.arg(
|
||||
Arg::new("disable-lock-timeouts")
|
||||
.long("disable-lock-timeouts")
|
||||
.help("This flag is deprecated and has no effect.")
|
||||
.action(ArgAction::SetTrue)
|
||||
.help_heading(FLAG_HEADER)
|
||||
.display_order(0)
|
||||
)
|
||||
.arg(
|
||||
Arg::new("disable-proposer-reorgs")
|
||||
.long("disable-proposer-reorgs")
|
||||
@@ -1511,14 +1474,6 @@ pub fn cli_app() -> Command {
|
||||
.help_heading(FLAG_HEADER)
|
||||
.display_order(0)
|
||||
)
|
||||
.arg(
|
||||
Arg::new("always-prefer-builder-payload")
|
||||
.action(ArgAction::SetTrue)
|
||||
.help_heading(FLAG_HEADER)
|
||||
.long("always-prefer-builder-payload")
|
||||
.help("This flag is deprecated and has no effect.")
|
||||
.display_order(0)
|
||||
)
|
||||
.arg(
|
||||
Arg::new("invalid-gossip-verified-blocks-path")
|
||||
.action(ArgAction::Set)
|
||||
@@ -1530,14 +1485,6 @@ pub fn cli_app() -> Command {
|
||||
filling up their disks.")
|
||||
.display_order(0)
|
||||
)
|
||||
.arg(
|
||||
Arg::new("progressive-balances")
|
||||
.long("progressive-balances")
|
||||
.value_name("MODE")
|
||||
.help("Deprecated. This optimisation is now the default and cannot be disabled.")
|
||||
.action(ArgAction::Set)
|
||||
.display_order(0)
|
||||
)
|
||||
.arg(
|
||||
Arg::new("beacon-processor-max-workers")
|
||||
.long("beacon-processor-max-workers")
|
||||
@@ -1599,13 +1546,5 @@ pub fn cli_app() -> Command {
|
||||
.action(ArgAction::Set)
|
||||
.display_order(0)
|
||||
)
|
||||
.arg(
|
||||
Arg::new("disable-duplicate-warn-logs")
|
||||
.long("disable-duplicate-warn-logs")
|
||||
.help("This flag is deprecated and has no effect.")
|
||||
.action(ArgAction::SetTrue)
|
||||
.help_heading(FLAG_HEADER)
|
||||
.display_order(0)
|
||||
)
|
||||
.group(ArgGroup::new("enable_http").args(["http", "gui", "staking"]).multiple(true))
|
||||
}
|
||||
|
||||
@@ -152,14 +152,6 @@ pub fn get_config<E: EthSpec>(
|
||||
client_config.http_api.allow_origin = Some(allow_origin.to_string());
|
||||
}
|
||||
|
||||
if cli_args.get_one::<String>("http-spec-fork").is_some() {
|
||||
warn!(
|
||||
log,
|
||||
"Ignoring --http-spec-fork";
|
||||
"info" => "this flag is deprecated and will be removed"
|
||||
);
|
||||
}
|
||||
|
||||
if cli_args.get_flag("http-enable-tls") {
|
||||
client_config.http_api.tls_config = Some(TlsConfig {
|
||||
cert: cli_args
|
||||
@@ -175,14 +167,6 @@ pub fn get_config<E: EthSpec>(
|
||||
});
|
||||
}
|
||||
|
||||
if cli_args.get_flag("http-allow-sync-stalled") {
|
||||
warn!(
|
||||
log,
|
||||
"Ignoring --http-allow-sync-stalled";
|
||||
"info" => "this flag is deprecated and will be removed"
|
||||
);
|
||||
}
|
||||
|
||||
client_config.http_api.sse_capacity_multiplier =
|
||||
parse_required(cli_args, "http-sse-capacity-multiplier")?;
|
||||
|
||||
@@ -362,14 +346,6 @@ pub fn get_config<E: EthSpec>(
|
||||
.map(Duration::from_millis);
|
||||
}
|
||||
|
||||
if cli_args.get_flag("always-prefer-builder-payload") {
|
||||
warn!(
|
||||
log,
|
||||
"Ignoring --always-prefer-builder-payload";
|
||||
"info" => "this flag is deprecated and will be removed"
|
||||
);
|
||||
}
|
||||
|
||||
// Set config values from parse values.
|
||||
el_config.secret_file = Some(secret_file.clone());
|
||||
el_config.execution_endpoint = Some(execution_endpoint.clone());
|
||||
@@ -787,14 +763,6 @@ pub fn get_config<E: EthSpec>(
|
||||
.individual_tracking_threshold = count;
|
||||
}
|
||||
|
||||
if cli_args.get_flag("disable-lock-timeouts") {
|
||||
warn!(
|
||||
log,
|
||||
"Ignoring --disable-lock-timeouts";
|
||||
"info" => "this flag is deprecated and will be removed"
|
||||
);
|
||||
}
|
||||
|
||||
if cli_args.get_flag("disable-proposer-reorgs") {
|
||||
client_config.chain.re_org_head_threshold = None;
|
||||
client_config.chain.re_org_parent_threshold = None;
|
||||
@@ -894,14 +862,6 @@ pub fn get_config<E: EthSpec>(
|
||||
client_config.network.invalid_block_storage = Some(path);
|
||||
}
|
||||
|
||||
if cli_args.get_one::<String>("progressive-balances").is_some() {
|
||||
warn!(
|
||||
log,
|
||||
"Progressive balances mode is deprecated";
|
||||
"info" => "please remove --progressive-balances"
|
||||
);
|
||||
}
|
||||
|
||||
if let Some(max_workers) = clap_utils::parse_optional(cli_args, "beacon-processor-max-workers")?
|
||||
{
|
||||
client_config.beacon_processor.max_workers = max_workers;
|
||||
|
||||
Reference in New Issue
Block a user