Search in sources :

Example 1 with Node

use of com.hedera.services.bdd.suites.utils.validation.domain.Node in project hedera-services by hashgraph.

the class ValidationScenarios method assertValidParams.

private static void assertValidParams() {
    boolean exit = false;
    if (!validationConfig.getNetworks().containsKey(params.getTargetNetwork())) {
        log.error(String.format("No config present for network '%s', exiting.", params.getTargetNetwork()));
        exit = true;
    }
    for (Node node : targetNetwork().getNodes()) {
        nodeAccounts.add(String.format("0.0.%d", node.getAccount()));
    }
    if (exit) {
        System.exit(1);
    }
}
Also used : Node(com.hedera.services.bdd.suites.utils.validation.domain.Node)

Aggregations

Node (com.hedera.services.bdd.suites.utils.validation.domain.Node)1