Skip to content

Commit

Permalink
Remove hidden alias of --metrics-block-timing-tracking-enabled (#6799)
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanBratanov authored Feb 13, 2023
1 parent 879473b commit 385eaa8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Changelog

## Upcoming Breaking Changes
- The `--Xmetrics-block-timing-tracking-enabled` option has been renamed to `--metrics-block-timing-tracking-enabled` and enabled by default. The `--X` version will be removed in a future release.
- The `/eth/v1/debug/beacon/states/:state_id` endpoint has been deprecated in favor of the v2 Altair endpoint `/eth/v2/debug/beacon/states/:state_id`
- The `/eth/v1/beacon/blocks/:block_id` endpoint has been deprecated in favor of the v2 Altair endpoint `/eth/v2/beacon/blocks/:block_id`
- The `/eth/v1/validator/blocks/:slot` endpoint has been deprecated in favor of the v2 Altair endpoint `/eth/v2/validator/blocks/:slot`
Expand All @@ -16,6 +15,7 @@ For information on changes in released versions of Teku, see the [releases page]

### Breaking Changes
- Removed references to beacon block methods `/eth2/beacon_chain/req/beacon_blocks_by_root` and `/eth2/beacon_chain/req/beacon_blocks_by_range`.
- `--Xmetrics-block-timing-tracking-enabled` option has been removed. The `--metrics-block-timing-tracking-enabled` option should be used instead (enabled by default).

### Additions and Improvements
- Introduced [Doppelganger Detection feature](https://docs.teku.consensys.net/en/latest/HowTo/Doppelganger-Detection/)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,7 @@ public class MetricsOptions {
private int metricsPublicationInterval = MetricsConfig.DEFAULT_METRICS_PUBLICATION_INTERVAL;

@Option(
names = {
"--metrics-block-timing-tracking-enabled",
"--Xmetrics-block-timing-tracking-enabled"
},
names = {"--metrics-block-timing-tracking-enabled"},
showDefaultValue = Visibility.ALWAYS,
paramLabel = "<BOOLEAN>",
description = "Whether block timing metrics are tracked and reported",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,6 @@ void helpShouldNotShowUnsupportedOptions() {

beaconNodeCommand.parse(args);
String str = getCommandLineOutput();
// --Xmetrics-block-timing-tracking-enabled is being supported as an alias for the supported
// version because of the significant number of people using it
str = str.replace("--Xmetrics-block-timing-tracking-enabled", "");
assertThat(str).doesNotContain("--X");
}

Expand Down

0 comments on commit 385eaa8

Please sign in to comment.