|
|
@ -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"); |
|
|
|