mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-06 18:21:45 +00:00
Undo some CLI flag breakages (#5902)
* Undo some CLI breakages * Update CLI book docs
This commit is contained in:
@@ -406,6 +406,15 @@ pub fn cli_app() -> Command {
|
||||
.help_heading(FLAG_HEADER)
|
||||
.display_order(0)
|
||||
)
|
||||
.arg(
|
||||
Arg::new("latency-measurement-service")
|
||||
.long("latency-measurement-service")
|
||||
.help("DEPRECATED")
|
||||
.action(ArgAction::Set)
|
||||
.help_heading(FLAG_HEADER)
|
||||
.display_order(0)
|
||||
.hide(true)
|
||||
)
|
||||
.arg(
|
||||
Arg::new("validator-registration-batch-size")
|
||||
.long("validator-registration-batch-size")
|
||||
|
||||
@@ -412,6 +412,17 @@ impl Config {
|
||||
config.enable_latency_measurement_service =
|
||||
!cli_args.get_flag("disable-latency-measurement-service");
|
||||
|
||||
if cli_args
|
||||
.get_one::<String>("latency-measurement-service")
|
||||
.is_some()
|
||||
{
|
||||
warn!(
|
||||
log,
|
||||
"latency-measurement-service flag";
|
||||
"note" => "deprecated flag has no effect and should be removed"
|
||||
);
|
||||
}
|
||||
|
||||
config.validator_registration_batch_size =
|
||||
parse_required(cli_args, "validator-registration-batch-size")?;
|
||||
if config.validator_registration_batch_size == 0 {
|
||||
|
||||
Reference in New Issue
Block a user