Skip to content

Commit 509d63f

Browse files
authored
remove deprecated option --Xbonsai-trie-logs-pruning-window-size (#8823)
* remove deprecated option Signed-off-by: Sally MacFarlane <[email protected]> --------- Signed-off-by: Sally MacFarlane <[email protected]>
1 parent 79411b0 commit 509d63f

File tree

3 files changed

+1
-18
lines changed

3 files changed

+1
-18
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
### Breaking Changes
44
- Changes in Maven coordinates of Besu artifacts to avoid possible collisions with other libraries when packaging plugins. See [Appendix A](#appendix-a) for a mapping. [#8589](https://github.com/hyperledger/besu/pull/8589) [#8746](https://github.com/hyperledger/besu/pull/8746)
55
- `BesuContext` is removed, since deprecated in favor of `ServiceManager` since `24.12.0`
6+
- Remove the deprecated `--Xbonsai-trie-logs-pruning-window-size`, use `--bonsai-trie-logs-pruning-window-size` instead. [#8823](https://github.com/hyperledger/besu/pull/8823)
67
- Remove the deprecated `--Xbonsai-limit-trie-logs-enabled`, use `--bonsai-limit-trie-logs-enabled` instead. [#8704](https://github.com/hyperledger/besu/issues/8704)
78
- Remove the deprecated `--Xbonsai-trie-log-pruning-enabled`, use `--bonsai-limit-trie-logs-enabled` instead. [#8704](https://github.com/hyperledger/besu/issues/8704)
89
- Remove methods from gas calculator deprecated since 24.4 `create2OperationGasCost`, `callOperationGasCost`, `createOperationGasCost`, and `cost` [#8817](https://github.com/hyperledger/besu/pull/8817)
@@ -11,7 +12,6 @@
1112
- PoW RPCs removed: `eth_getWork`, `eth_submitWork`, `eth_getHashrate`, `eth_submitHashrate`, `eth_hashrate`
1213

1314
### Upcoming Breaking Changes
14-
- `--Xbonsai-trie-logs-pruning-window-size` is deprecated, use `--bonsai-trie-logs-pruning-window-size` instead.
1515
- `--Xbonsai-parallel-tx-processing-enabled` is deprecated, use `--bonsai-parallel-tx-processing-enabled` instead.
1616
- `--Xsnapsync-bft-enabled` is deprecated and will be removed in a future release. SNAP sync is supported for BFT networks.
1717
- Sunsetting features - for more context on the reasoning behind the deprecation of these features, including alternative options, read [this blog post](https://www.lfdecentralizedtrust.org/blog/sunsetting-tessera-and-simplifying-hyperledger-besu)

app/src/main/java/org/hyperledger/besu/cli/options/storage/PathBasedExtraStorageOptions.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,9 @@ public class PathBasedExtraStorageOptions
6767
description = "Limit the number of trie logs that are retained. (default: ${DEFAULT-VALUE})")
6868
private Boolean limitTrieLogsEnabled = DEFAULT_LIMIT_TRIE_LOGS_ENABLED;
6969

70-
// TODO --Xbonsai-trie-logs-pruning-window-size is deprecated, remove in a future release
71-
@SuppressWarnings("ExperimentalCliOptionMustBeCorrectlyDisplayed")
7270
@Option(
7371
names = {
7472
TRIE_LOG_PRUNING_WINDOW_SIZE,
75-
"--Xbonsai-trie-logs-pruning-window-size" // deprecated
7673
},
7774
description =
7875
"The max number of blocks to load and prune trie logs for at startup. (default: ${DEFAULT-VALUE})")

app/src/test/java/org/hyperledger/besu/cli/options/stable/DataStorageOptionsTest.java

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -43,20 +43,6 @@ public void bonsaiTrieLogPruningLimitOption() {
4343
"600");
4444
}
4545

46-
@Test
47-
public void bonsaiTrieLogPruningLimitLegacyOption() {
48-
internalTestSuccess(
49-
dataStorageConfiguration ->
50-
assertThat(
51-
dataStorageConfiguration
52-
.getPathBasedExtraStorageConfiguration()
53-
.getTrieLogPruningWindowSize())
54-
.isEqualTo(600),
55-
"--bonsai-limit-trie-logs-enabled",
56-
"--Xbonsai-trie-logs-pruning-window-size",
57-
"600");
58-
}
59-
6046
@Test
6147
public void bonsaiTrieLogsEnabled_explicitlySetToFalse() {
6248
internalTestSuccess(

0 commit comments

Comments
 (0)