use of com.hedera.services.bdd.spec.HapiSpecSetup in project hedera-services by hashgraph.
the class UmbrellaReduxWithCustomNodes method main.
public static void main(String... args) {
if (args.length < 4) {
HapiSpecSetup defaultSetup = HapiSpecSetup.getDefaultInstance();
NodeConnectInfo nodeInfo = defaultSetup.nodes().get(0);
nodeId += nodeInfo.getAccount().getAccountNum();
nodeAddress = nodeInfo.getHost();
log.info("using default nodeId {} and node address {} -- RUNNING CUSTOM NET MIGRATION ", nodeId, nodeAddress);
payer += defaultSetup.defaultPayer().getAccountNum();
startUpAccount = defaultSetup.startupAccountsPath();
topic_running_hash_version = defaultSetup.defaultTopicRunningHashVersion();
} else {
nodeId += args[0];
nodeAddress = args[1];
payer += args[2];
startUpAccount = args[3];
topic_running_hash_version = Integer.parseInt(args[4]);
}
UmbrellaReduxWithCustomNodes umbrellaReduxWithCustomNodes = new UmbrellaReduxWithCustomNodes();
umbrellaReduxWithCustomNodes.runSuiteSync();
}
Aggregations