Skip to content

Commit

Permalink
Fast sync - deprecation warning (hyperledger#7906)
Browse files Browse the repository at this point in the history
* fast sync log warnings for deprecation

Signed-off-by: Sally MacFarlane <[email protected]>

* minor text change in changelog

Signed-off-by: Sally MacFarlane <[email protected]>

---------

Signed-off-by: Sally MacFarlane <[email protected]>
Co-authored-by: Fabio Di Fabio <[email protected]>
  • Loading branch information
macfarla and fab-10 authored Nov 29, 2024
1 parent 8a033b9 commit afd4da1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
- `--host-whitelist` has been deprecated in favor of `--host-allowlist` since 2020 and will be removed in a future release
- 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)
- Tessera privacy
- Smart-contract-based permissioning
- Smart-contract-based (onchain) permissioning
- Proof of Work consensus
- Fast Sync

Expand Down
4 changes: 4 additions & 0 deletions besu/src/main/java/org/hyperledger/besu/cli/BesuCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -1640,6 +1640,10 @@ private void issueOptionWarnings() {
"--p2p-port",
"--remote-connections-max-percentage"));

if (SyncMode.FAST == syncMode) {
logger.warn("FAST sync is deprecated. Recommend using SNAP sync instead.");
}

if (SyncMode.isFullSync(getDefaultSyncModeIfNotSet())
&& isOptionSet(commandLine, "--sync-min-peers")) {
logger.warn("--sync-min-peers is ignored in FULL sync-mode");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,8 @@ public String build() {
}

if (syncMode != null) {
lines.add("Sync mode: " + syncMode);
lines.add(
"Sync mode: " + syncMode + (syncMode.equalsIgnoreCase("FAST") ? " (Deprecated)" : ""));
}

if (syncMinPeers != null) {
Expand Down

0 comments on commit afd4da1

Please sign in to comment.