Skip to content

Commit 592d6ad

Browse files
authored
remove deprecated Xsnapsync-bft-enabled option (#8861)
* remove deprecated Xsnapsync-bft-enabled option Signed-off-by: Sally MacFarlane <[email protected]> --------- Signed-off-by: Sally MacFarlane <[email protected]>
1 parent ab130a3 commit 592d6ad

File tree

4 files changed

+2
-26
lines changed

4 files changed

+2
-26
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
- 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)
77
- Remove the deprecated `--Xbonsai-limit-trie-logs-enabled`, use `--bonsai-limit-trie-logs-enabled` instead. [#8704](https://github.com/hyperledger/besu/issues/8704)
88
- Remove the deprecated `--Xbonsai-trie-log-pruning-enabled`, use `--bonsai-limit-trie-logs-enabled` instead. [#8704](https://github.com/hyperledger/besu/issues/8704)
9+
- Remove the deprecated `--Xsnapsync-bft-enabled`. SNAP sync is now supported for BFT networks. [#8861](https://github.com/hyperledger/besu/pull/8861)
910
- Remove methods from gas calculator deprecated since 24.4 `create2OperationGasCost`, `callOperationGasCost`, `createOperationGasCost`, and `cost` [#8817](https://github.com/hyperledger/besu/pull/8817)
1011
- 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)
1112
- Stratum mining has been removed (part of PoW) [#8802](https://github.com/hyperledger/besu/pull/8802)
1213
- PoW RPCs removed: `eth_getWork`, `eth_submitWork`, `eth_getHashrate`, `eth_submitHashrate`, `eth_hashrate`
1314

1415
### Upcoming Breaking Changes
1516
- `--Xbonsai-parallel-tx-processing-enabled` is deprecated, use `--bonsai-parallel-tx-processing-enabled` instead.
16-
- `--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)
1818
- Proof of Work consensus (PoW)
1919
- Fast Sync

app/src/main/java/org/hyperledger/besu/cli/options/SynchronizerOptions.java

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,6 @@ public class SynchronizerOptions implements CLIOptions<SynchronizerConfiguration
8787

8888
private static final String CHECKPOINT_POST_MERGE_FLAG = "--Xcheckpoint-post-merge-enabled";
8989

90-
private static final String SNAP_SYNC_BFT_ENABLED_FLAG = "--Xsnapsync-bft-enabled";
91-
9290
private static final String SNAP_SYNC_SAVE_PRE_MERGE_HEADERS_ONLY_FLAG =
9391
"--Xsnapsync-synchronizer-pre-merge-headers-only-enabled";
9492

@@ -311,17 +309,6 @@ public void parseBlockPropagationRange(final String arg) {
311309
private Boolean checkpointPostMergeSyncEnabled =
312310
SynchronizerConfiguration.DEFAULT_CHECKPOINT_POST_MERGE_ENABLED;
313311

314-
// TODO --Xsnapsync-bft-enabled is deprecated,
315-
// remove in a future release
316-
@CommandLine.Option(
317-
names = SNAP_SYNC_BFT_ENABLED_FLAG, // deprecated
318-
hidden = true,
319-
paramLabel = "<Boolean>",
320-
arity = "0..1",
321-
description =
322-
"This option is now deprecated and ignored, and will be removed in future release. Snap sync for BFT is supported by default.")
323-
private Boolean snapsyncBftEnabled = SnapSyncConfiguration.DEFAULT_SNAP_SYNC_BFT_ENABLED;
324-
325312
@CommandLine.Option(
326313
names = {"--Xpeertask-system-enabled"},
327314
hidden = true,
@@ -359,15 +346,6 @@ public boolean isSnapsyncServerEnabled() {
359346
return snapsyncServerEnabled;
360347
}
361348

362-
/**
363-
* Flag to know whether the Snap sync should be enabled for a BFT chain
364-
*
365-
* @return true if snap sync for BFT is enabled
366-
*/
367-
public boolean isSnapSyncBftEnabled() {
368-
return snapsyncBftEnabled;
369-
}
370-
371349
/**
372350
* Flag to indicate whether the peer task system should be used where available
373351
*

app/src/test/java/org/hyperledger/besu/cli/options/SynchronizerOptionsTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
import org.hyperledger.besu.ethereum.eth.sync.snapsync.ImmutableSnapSyncConfiguration;
1919
import org.hyperledger.besu.ethereum.eth.sync.snapsync.SnapSyncConfiguration;
2020

21-
import java.util.Arrays;
2221
import java.util.List;
2322

2423
import com.google.common.collect.Range;
@@ -96,7 +95,7 @@ protected SynchronizerOptions getOptionsFromBesuCommand(final TestBesuCommand be
9695

9796
@Override
9897
protected List<String> getFieldsToIgnore() {
99-
return Arrays.asList("syncMinimumPeerCount");
98+
return List.of("syncMinimumPeerCount");
10099
}
101100

102101
@Override

ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/sync/snapsync/SnapSyncConfiguration.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ public class SnapSyncConfiguration {
3838

3939
public static final Boolean DEFAULT_SNAP_SERVER_ENABLED = Boolean.FALSE;
4040

41-
public static final Boolean DEFAULT_SNAP_SYNC_BFT_ENABLED = Boolean.FALSE;
4241
public static final Boolean DEFAULT_SNAP_SYNC_TRANSACTION_INDEXING_ENABLED = Boolean.FALSE;
4342
public static final Boolean DEFAULT_SNAP_SYNC_SAVE_PRE_MERGE_HEADERS_ONLY_ENABLED = Boolean.FALSE;
4443

0 commit comments

Comments
 (0)