Search in sources :

Example 1 with HapiSpecSetup

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();
}
Also used : HapiSpecSetup(com.hedera.services.bdd.spec.HapiSpecSetup) NodeConnectInfo(com.hedera.services.bdd.spec.props.NodeConnectInfo)

Aggregations

HapiSpecSetup (com.hedera.services.bdd.spec.HapiSpecSetup)1 NodeConnectInfo (com.hedera.services.bdd.spec.props.NodeConnectInfo)1