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
if (Boolean.TRUE.equals(privacyOptionGroup.isPrivacyEnabled)) {
logger.warn(
"--Xprivacy-plugin-enabled and related options are " + PRIVACY_DEPRECATION_PREFIX);
if (privacyOptionGroup.privateMarkerTransactionSigningKeyPath != null
&& privacyPluginService != null

@ -33,7 +33,7 @@ public class PrivacyPluginOptions {
@Option(
names = "--Xprivacy-plugin-enabled",
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)
private final Boolean isPrivacyPluginEnabled = false;

Loading…
Cancel
Save