[NC-2110] Removed CLI options for --nodes-whitelist and --accounts-whitelist and associated items. (#694)

Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
pull/2/head
mark-terry 6 years ago committed by GitHub
parent 61998b503d
commit 3bcfa60ed0
  1. 12
      acceptance-tests/src/test/java/tech/pegasys/pantheon/tests/acceptance/dsl/node/ProcessPantheonNodeRunner.java
  2. 23
      pantheon/src/main/java/tech/pegasys/pantheon/cli/PantheonCommand.java
  3. 2
      pantheon/src/test/resources/everything_config.toml

@ -17,7 +17,6 @@ import static java.nio.charset.StandardCharsets.UTF_8;
import tech.pegasys.pantheon.cli.EthNetworkConfig; import tech.pegasys.pantheon.cli.EthNetworkConfig;
import tech.pegasys.pantheon.ethereum.jsonrpc.RpcApi; import tech.pegasys.pantheon.ethereum.jsonrpc.RpcApi;
import tech.pegasys.pantheon.ethereum.jsonrpc.RpcApis; import tech.pegasys.pantheon.ethereum.jsonrpc.RpcApis;
import tech.pegasys.pantheon.ethereum.permissioning.PermissioningConfiguration;
import java.io.File; import java.io.File;
import java.io.IOException; import java.io.IOException;
@ -75,17 +74,6 @@ public class ProcessPantheonNodeRunner implements PantheonNodeRunner {
params.add("--bootnodes"); params.add("--bootnodes");
params.add(String.join(",", node.bootnodes().toString())); params.add(String.join(",", node.bootnodes().toString()));
final PermissioningConfiguration permissioningConfiguration =
node.getPermissioningConfiguration();
if (permissioningConfiguration.isNodeWhitelistSet()) {
params.add("--nodes-whitelist");
params.add(String.join(",", permissioningConfiguration.getNodeWhitelist().toString()));
}
if (permissioningConfiguration.isAccountWhitelistSet()) {
params.add("--accounts-whitelist");
params.add(String.join(",", permissioningConfiguration.getAccountWhitelist().toString()));
}
if (node.jsonRpcEnabled()) { if (node.jsonRpcEnabled()) {
params.add("--rpc-enabled"); params.add("--rpc-enabled");
params.add("--rpc-listen"); params.add("--rpc-listen");

@ -453,29 +453,6 @@ public class PantheonCommand implements DefaultCommandValues, Runnable {
) )
private final Boolean permissionsAccountsEnabled = false; private final Boolean permissionsAccountsEnabled = false;
// Permissioning: A list of whitelist nodes can be passed.
@Option(
names = {"--nodes-whitelist"},
description =
"Comma separated enode URLs for permissioned networks. "
+ "Not intended to be used with mainnet or public testnets.",
split = ",",
arity = "0..*",
converter = EnodeToURIPropertyConverter.class
)
private final Collection<URI> nodesWhitelist = null;
@Option(
names = {"--accounts-whitelist"},
paramLabel = "<hex string of account public key>",
description =
"Comma separated hex strings of account public keys "
+ "for permissioned/role-based transactions. You may specify an empty list.",
split = ",",
arity = "0..*"
)
private final Collection<String> accountsWhitelist = null;
@Option( @Option(
names = {"--privacy-url"}, names = {"--privacy-url"},
description = "The URL on which enclave is running " description = "The URL on which enclave is running "

@ -64,8 +64,6 @@ miner-extra-data="0x444F4E27542050414E4943202120484F444C2C20484F444C2C20484F444C
min-gas-price="1" min-gas-price="1"
# Permissioning # Permissioning
accounts-whitelist=["0x0000000000000000000000000000000000000009"]
nodes-whitelist=["all"]
permissions-nodes-enabled=false permissions-nodes-enabled=false
permissions-accounts-enabled=false permissions-accounts-enabled=false

Loading…
Cancel
Save