cli: remove warn when using --fast-sync-min-peers with snap sync (#3812)

The --fast-sync-min-peers option and its value are also relevant for
snap sync. We should therefore not log a warning about the min peers
option being ignored if it is passed.

Signed-off-by: Pietje Puk <pietje@pietjepuk.net>
pull/3815/head
pietjepuk2 3 years ago committed by GitHub
parent 35fe0fe046
commit de8eab8219
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      besu/src/main/java/org/hyperledger/besu/cli/BesuCommand.java

@ -203,6 +203,7 @@ import java.util.ArrayList;
import java.util.Arrays;
import java.util.Base64;
import java.util.Collection;
import java.util.EnumSet;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
@ -1858,7 +1859,7 @@ public class BesuCommand implements DefaultCommandValues, Runnable {
logger,
commandLine,
"--sync-mode",
!SyncMode.FAST.equals(syncMode),
!EnumSet.of(SyncMode.FAST, SyncMode.X_SNAP).contains(syncMode),
singletonList("--fast-sync-min-peers"));
if (!securityModuleName.equals(DEFAULT_SECURITY_MODULE)

Loading…
Cancel
Save