Skip to content

Commit 6ad2c18

Browse files
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
1 parent d1fda93 commit 6ad2c18

File tree

16 files changed

+4
-295
lines changed

16 files changed

+4
-295
lines changed

beacon_node/http_api/src/lib.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,6 @@ pub struct Config {
146146
pub listen_port: u16,
147147
pub allow_origin: Option<String>,
148148
pub tls_config: Option<TlsConfig>,
149-
pub spec_fork_name: Option<ForkName>,
150149
pub data_dir: PathBuf,
151150
pub sse_capacity_multiplier: usize,
152151
pub enable_beacon_processor: bool,
@@ -164,7 +163,6 @@ impl Default for Config {
164163
listen_port: 5052,
165164
allow_origin: None,
166165
tls_config: None,
167-
spec_fork_name: None,
168166
data_dir: PathBuf::from(DEFAULT_ROOT_DIR),
169167
sse_capacity_multiplier: 1,
170168
enable_beacon_processor: true,
@@ -2643,7 +2641,6 @@ pub fn serve<T: BeaconChainTypes>(
26432641
);
26442642

26452643
// GET config/spec
2646-
let spec_fork_name = ctx.config.spec_fork_name;
26472644
let get_config_spec = config_path
26482645
.and(warp::path("spec"))
26492646
.and(warp::path::end())
@@ -2653,7 +2650,7 @@ pub fn serve<T: BeaconChainTypes>(
26532650
move |task_spawner: TaskSpawner<T::EthSpec>, chain: Arc<BeaconChain<T>>| {
26542651
task_spawner.blocking_json_task(Priority::P0, move || {
26552652
let config_and_preset =
2656-
ConfigAndPreset::from_chain_spec::<T::EthSpec>(&chain.spec, spec_fork_name);
2653+
ConfigAndPreset::from_chain_spec::<T::EthSpec>(&chain.spec, None);
26572654
Ok(api_types::GenericResponse::from(config_and_preset))
26582655
})
26592656
},

beacon_node/operation_pool/src/attestation_id.rs

Lines changed: 0 additions & 12 deletions
This file was deleted.

beacon_node/operation_pool/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
mod attestation;
2-
mod attestation_id;
32
mod attestation_storage;
43
mod attester_slashing;
54
mod bls_to_execution_changes;

beacon_node/src/cli.rs

Lines changed: 0 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -401,15 +401,6 @@ pub fn cli_app() -> Command {
401401
.help_heading(FLAG_HEADER)
402402
.display_order(0)
403403
)
404-
.arg(
405-
Arg::new("self-limiter")
406-
.long("self-limiter")
407-
.help("This flag is deprecated and has no effect.")
408-
.hide(true)
409-
.action(ArgAction::SetTrue)
410-
.help_heading(FLAG_HEADER)
411-
.display_order(0)
412-
)
413404
.arg(
414405
Arg::new("disable-self-limiter")
415406
.long("disable-self-limiter")
@@ -525,16 +516,6 @@ pub fn cli_app() -> Command {
525516
.action(ArgAction::Set)
526517
.display_order(0)
527518
)
528-
.arg(
529-
Arg::new("http-spec-fork")
530-
.long("http-spec-fork")
531-
.requires("enable_http")
532-
.value_name("FORK")
533-
.help("This flag is deprecated and has no effect.")
534-
.hide(true)
535-
.action(ArgAction::Set)
536-
.display_order(0)
537-
)
538519
.arg(
539520
Arg::new("http-enable-tls")
540521
.long("http-enable-tls")
@@ -564,16 +545,6 @@ pub fn cli_app() -> Command {
564545
.action(ArgAction::Set)
565546
.display_order(0)
566547
)
567-
.arg(
568-
Arg::new("http-allow-sync-stalled")
569-
.long("http-allow-sync-stalled")
570-
.action(ArgAction::SetTrue)
571-
.help_heading(FLAG_HEADER)
572-
.requires("enable_http")
573-
.help("This flag is deprecated and has no effect.")
574-
.hide(true)
575-
.display_order(0)
576-
)
577548
.arg(
578549
Arg::new("http-sse-capacity-multiplier")
579550
.long("http-sse-capacity-multiplier")
@@ -1291,14 +1262,6 @@ pub fn cli_app() -> Command {
12911262
.action(ArgAction::Set)
12921263
.display_order(0)
12931264
)
1294-
.arg(
1295-
Arg::new("disable-lock-timeouts")
1296-
.long("disable-lock-timeouts")
1297-
.help("This flag is deprecated and has no effect.")
1298-
.action(ArgAction::SetTrue)
1299-
.help_heading(FLAG_HEADER)
1300-
.display_order(0)
1301-
)
13021265
.arg(
13031266
Arg::new("disable-proposer-reorgs")
13041267
.long("disable-proposer-reorgs")
@@ -1511,14 +1474,6 @@ pub fn cli_app() -> Command {
15111474
.help_heading(FLAG_HEADER)
15121475
.display_order(0)
15131476
)
1514-
.arg(
1515-
Arg::new("always-prefer-builder-payload")
1516-
.action(ArgAction::SetTrue)
1517-
.help_heading(FLAG_HEADER)
1518-
.long("always-prefer-builder-payload")
1519-
.help("This flag is deprecated and has no effect.")
1520-
.display_order(0)
1521-
)
15221477
.arg(
15231478
Arg::new("invalid-gossip-verified-blocks-path")
15241479
.action(ArgAction::Set)
@@ -1530,14 +1485,6 @@ pub fn cli_app() -> Command {
15301485
filling up their disks.")
15311486
.display_order(0)
15321487
)
1533-
.arg(
1534-
Arg::new("progressive-balances")
1535-
.long("progressive-balances")
1536-
.value_name("MODE")
1537-
.help("Deprecated. This optimisation is now the default and cannot be disabled.")
1538-
.action(ArgAction::Set)
1539-
.display_order(0)
1540-
)
15411488
.arg(
15421489
Arg::new("beacon-processor-max-workers")
15431490
.long("beacon-processor-max-workers")
@@ -1599,13 +1546,5 @@ pub fn cli_app() -> Command {
15991546
.action(ArgAction::Set)
16001547
.display_order(0)
16011548
)
1602-
.arg(
1603-
Arg::new("disable-duplicate-warn-logs")
1604-
.long("disable-duplicate-warn-logs")
1605-
.help("This flag is deprecated and has no effect.")
1606-
.action(ArgAction::SetTrue)
1607-
.help_heading(FLAG_HEADER)
1608-
.display_order(0)
1609-
)
16101549
.group(ArgGroup::new("enable_http").args(["http", "gui", "staking"]).multiple(true))
16111550
}

beacon_node/src/config.rs

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -152,14 +152,6 @@ pub fn get_config<E: EthSpec>(
152152
client_config.http_api.allow_origin = Some(allow_origin.to_string());
153153
}
154154

155-
if cli_args.get_one::<String>("http-spec-fork").is_some() {
156-
warn!(
157-
log,
158-
"Ignoring --http-spec-fork";
159-
"info" => "this flag is deprecated and will be removed"
160-
);
161-
}
162-
163155
if cli_args.get_flag("http-enable-tls") {
164156
client_config.http_api.tls_config = Some(TlsConfig {
165157
cert: cli_args
@@ -175,14 +167,6 @@ pub fn get_config<E: EthSpec>(
175167
});
176168
}
177169

178-
if cli_args.get_flag("http-allow-sync-stalled") {
179-
warn!(
180-
log,
181-
"Ignoring --http-allow-sync-stalled";
182-
"info" => "this flag is deprecated and will be removed"
183-
);
184-
}
185-
186170
client_config.http_api.sse_capacity_multiplier =
187171
parse_required(cli_args, "http-sse-capacity-multiplier")?;
188172

@@ -362,14 +346,6 @@ pub fn get_config<E: EthSpec>(
362346
.map(Duration::from_millis);
363347
}
364348

365-
if cli_args.get_flag("always-prefer-builder-payload") {
366-
warn!(
367-
log,
368-
"Ignoring --always-prefer-builder-payload";
369-
"info" => "this flag is deprecated and will be removed"
370-
);
371-
}
372-
373349
// Set config values from parse values.
374350
el_config.secret_file = Some(secret_file.clone());
375351
el_config.execution_endpoint = Some(execution_endpoint.clone());
@@ -787,14 +763,6 @@ pub fn get_config<E: EthSpec>(
787763
.individual_tracking_threshold = count;
788764
}
789765

790-
if cli_args.get_flag("disable-lock-timeouts") {
791-
warn!(
792-
log,
793-
"Ignoring --disable-lock-timeouts";
794-
"info" => "this flag is deprecated and will be removed"
795-
);
796-
}
797-
798766
if cli_args.get_flag("disable-proposer-reorgs") {
799767
client_config.chain.re_org_head_threshold = None;
800768
client_config.chain.re_org_parent_threshold = None;
@@ -894,14 +862,6 @@ pub fn get_config<E: EthSpec>(
894862
client_config.network.invalid_block_storage = Some(path);
895863
}
896864

897-
if cli_args.get_one::<String>("progressive-balances").is_some() {
898-
warn!(
899-
log,
900-
"Progressive balances mode is deprecated";
901-
"info" => "please remove --progressive-balances"
902-
);
903-
}
904-
905865
if let Some(max_workers) = clap_utils::parse_optional(cli_args, "beacon-processor-max-workers")?
906866
{
907867
client_config.beacon_processor.max_workers = max_workers;

book/src/help_bn.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -292,9 +292,6 @@ Options:
292292
which don't improve their payload after the first call, and high
293293
values are useful for ensuring the EL is given ample notice. Default:
294294
1/3 of a slot.
295-
--progressive-balances <MODE>
296-
Deprecated. This optimisation is now the default and cannot be
297-
disabled.
298295
--proposer-reorg-cutoff <MILLISECONDS>
299296
Maximum delay after the start of the slot at which to propose a
300297
reorging block. Lower values can prevent failed reorgs by ensuring the
@@ -445,8 +442,6 @@ Flags:
445442
incompatible with data availability checks. Checkpoint syncing is the
446443
preferred method for syncing a node. Only use this flag when testing.
447444
DO NOT use on mainnet!
448-
--always-prefer-builder-payload
449-
This flag is deprecated and has no effect.
450445
--always-prepare-payload
451446
Send payload attributes with every fork choice update. This is
452447
intended for use by block builders, relays and developers. You should
@@ -470,17 +465,13 @@ Flags:
470465
Explicitly disables syncing of deposit logs from the execution node.
471466
This overrides any previous option that depends on it. Useful if you
472467
intend to run a non-validating beacon node.
473-
--disable-duplicate-warn-logs
474-
This flag is deprecated and has no effect.
475468
--disable-enr-auto-update
476469
Discovery automatically updates the nodes local ENR with an external
477470
IP address and port as seen by other peers on the network. This
478471
disables this feature, fixing the ENR's IP/PORT to those specified on
479472
boot.
480473
--disable-inbound-rate-limiter
481474
Disables the inbound rate limiter (requests received by this node).
482-
--disable-lock-timeouts
483-
This flag is deprecated and has no effect.
484475
--disable-log-timestamp
485476
If present, do not include timestamps in logging output.
486477
--disable-malloc-tuning

book/src/help_general.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,6 @@ Flags:
122122
debugging specific memory allocation issues.
123123
-h, --help
124124
Prints help information
125-
-l
126-
DEPRECATED Enables environment logging giving access to sub-protocol
127-
logs such as discv5 and libp2p
128125
--log-color
129126
Force outputting colors when emitting logs to the terminal.
130127
--logfile-compress

book/src/help_vc.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -210,12 +210,6 @@ Flags:
210210
If present, do not configure the system allocator. Providing this flag
211211
will generally increase memory usage, it should only be provided when
212212
debugging specific memory allocation issues.
213-
--disable-run-on-all
214-
DEPRECATED. Use --broadcast. By default, Lighthouse publishes
215-
attestation, sync committee subscriptions and proposer preparation
216-
messages to all beacon nodes provided in the `--beacon-nodes flag`.
217-
This option changes that behaviour such that these api calls only go
218-
out to the first available and synced beacon node
219213
--disable-slashing-protection-web3signer
220214
Disable Lighthouse's slashing protection for all web3signer keys. This
221215
can reduce the I/O burden on the VC but is only safe if slashing
@@ -280,8 +274,6 @@ Flags:
280274
--prefer-builder-proposals
281275
If this flag is set, Lighthouse will always prefer blocks constructed
282276
by builders, regardless of payload value.
283-
--produce-block-v3
284-
This flag is deprecated and is no longer in use.
285277
--stdin-inputs
286278
If present, read all user inputs from stdin instead of tty.
287279
--unencrypted-http-transport

book/src/redundancy.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,7 @@ lighthouse bn \
7474
Prior to v3.2.0 fallback beacon nodes also required the `--subscribe-all-subnets` and
7575
`--import-all-attestations` flags. These flags are no longer required as the validator client will
7676
now broadcast subscriptions to all connected beacon nodes by default. This broadcast behaviour
77-
can be disabled using the `--broadcast none` flag for `lighthouse vc` (or `--disable-run-on-all`
78-
[deprecated]).
77+
can be disabled using the `--broadcast none` flag for `lighthouse vc`.
7978

8079
### Broadcast modes
8180

consensus/types/src/config_and_preset.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ pub struct ConfigAndPreset {
4141
}
4242

4343
impl ConfigAndPreset {
44+
// DEPRECATED: the `fork_name` argument is never used, we should remove it.
4445
pub fn from_chain_spec<E: EthSpec>(spec: &ChainSpec, fork_name: Option<ForkName>) -> Self {
4546
let config = Config::from_chain_spec::<E>(spec);
4647
let base_preset = BasePreset::from_chain_spec::<E>(spec);

0 commit comments

Comments
 (0)