deprecation warning for privacy-plugin options

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

@ -1311,6 +1311,8 @@ public class BesuCommand implements DefaultCommandValues, Runnable {
// after start has been called on plugins // after start has been called on plugins
if (Boolean.TRUE.equals(privacyOptionGroup.isPrivacyEnabled)) { if (Boolean.TRUE.equals(privacyOptionGroup.isPrivacyEnabled)) {
logger.warn(
"--Xprivacy-plugin-enabled and related options are " + PRIVACY_DEPRECATION_PREFIX);
if (privacyOptionGroup.privateMarkerTransactionSigningKeyPath != null if (privacyOptionGroup.privateMarkerTransactionSigningKeyPath != null
&& privacyPluginService != null && privacyPluginService != null

@ -33,7 +33,7 @@ public class PrivacyPluginOptions {
@Option( @Option(
names = "--Xprivacy-plugin-enabled", names = "--Xprivacy-plugin-enabled",
description = description =
"Enables the use of a plugin to implement your own privacy strategy (default: ${DEFAULT-VALUE})", "Deprecated. Tessera-based privacy is deprecated. See CHANGELOG for alternative options. Enables the use of a plugin to implement your own privacy strategy (default: ${DEFAULT-VALUE})",
hidden = true) hidden = true)
private final Boolean isPrivacyPluginEnabled = false; private final Boolean isPrivacyPluginEnabled = false;

Loading…
Cancel
Save