log deprecation warning for privacy enabled option

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
pull/7897/head
Sally MacFarlane 1 day ago
parent f92e07e7a8
commit f4ba033182
  1. 1
      besu/src/main/java/org/hyperledger/besu/cli/BesuCommand.java

@ -1940,6 +1940,7 @@ public class BesuCommand implements DefaultCommandValues, Runnable {
final PrivacyParameters.Builder privacyParametersBuilder = new PrivacyParameters.Builder();
if (Boolean.TRUE.equals(privacyOptionGroup.isPrivacyEnabled)) {
logger.warn("--privacy-enabled and related options are " + PRIVACY_DEPRECATION_PREFIX);
final String errorSuffix = "cannot be enabled with privacy.";
if (syncMode == SyncMode.FAST) {
throw new ParameterException(commandLine, String.format("%s %s", "Fast sync", errorSuffix));

Loading…
Cancel
Save