[NC-2005] Added p2pEnabled config to ProcessPantheonNodeRunner. (#649)

Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
pull/2/head
mark-terry 6 years ago committed by GitHub
parent b3e64c4f7c
commit 948e8fe443
  1. 5
      acceptance-tests/src/test/java/tech/pegasys/pantheon/tests/acceptance/dsl/node/ProcessPantheonNodeRunner.java

@ -111,6 +111,11 @@ public class ProcessPantheonNodeRunner implements PantheonNodeRunner {
params.add(Integer.toString(ethNetworkConfig.getNetworkId())); params.add(Integer.toString(ethNetworkConfig.getNetworkId()));
} }
if (!node.p2pEnabled()) {
params.add("--p2p-enabled");
params.add("false");
}
final ProcessBuilder processBuilder = final ProcessBuilder processBuilder =
new ProcessBuilder(params) new ProcessBuilder(params)
.directory(new File(System.getProperty("user.dir")).getParentFile()) .directory(new File(System.getProperty("user.dir")).getParentFile())

Loading…
Cancel
Save