p2pPlugin = args.p2p_plugin Utils.Debug = debug cluster = Cluster(walletd=True, defproduceraPrvtKey=defproduceraPrvtKey) walletMgr = WalletMgr(True) testSuccessful = False killFscInstances = not dontKill killWallet = not dontKill WalletdName = Utils.FscWalletName ClientName = "clfsc" timeout = .5 * 12 * 2 + 60 # time for finalization with 1 producer + 60 seconds padding Utils.setIrreversibleTimeout(timeout) try: TestHelper.printSystemInfo("BEGIN") cluster.setWalletMgr(walletMgr) if not dontLaunch: cluster.killall(allInstances=killAll) cluster.cleanup() Print("Stand up cluster") pnodes = 4 if cluster.launch(pnodes=pnodes, totalNodes=pnodes, p2pPlugin=p2pPlugin) is False: cmdError("launcher") errorExit("Failed to stand up fsc cluster.") else: walletMgr.killall(allInstances=killAll)
output["stdout"] = outs.decode("utf-8") output["stderr"] = errs.decode("utf-8") output["returncode"] = proc.returncode except (subprocess.TimeoutExpired) as _: Print("ERROR: Nodeos is running beyond the defined wait time. Hard killing nodeos instance.") proc.send_signal(signal.SIGKILL) return (False, None) if debug: Print("Returning success.") return (True, output) random.seed(seed) # Use a fixed seed for repeatability. cluster=Cluster(walletd=True) try: TestHelper.printSystemInfo("BEGIN") cluster.setChainStrategy(chainSyncStrategyStr) cluster.killall(allInstances=killAll) cluster.cleanup() Print ("producing nodes: %d, topology: %s, delay between nodes launch(seconds): %d, chain sync strategy: %s" % ( pnodes, topo, delay, chainSyncStrategyStr)) Print("Stand up cluster") if cluster.launch(pnodes, total_nodes, topo=topo, delay=delay, dontBootstrap=True) is False: errorExit("Failed to stand up eos cluster.") node=cluster.getNode(0) if node is None:
port=port, walletd=True, enableMongo=enableMongo, defproduceraPrvtKey=defproduceraPrvtKey, defproducerbPrvtKey=defproducerbPrvtKey) walletMgr = WalletMgr(True, port=walletPort) testSuccessful = False killEosInstances = not dontKill killWallet = not dontKill dontBootstrap = sanityTest WalletdName = Utils.EosWalletName ClientName = "clio" try: TestHelper.printSystemInfo("BEGIN prod_preactivation_test.py") cluster.setWalletMgr(walletMgr) Print("SERVER: %s" % (server)) Print("PORT: %d" % (port)) if enableMongo and not cluster.isMongodDbRunning(): errorExit("MongoDb doesn't seem to be running.") if localTest and not dontLaunch: cluster.killall(allInstances=killAll) cluster.cleanup() Print("Stand up cluster") if cluster.launch( pnodes=prodCount, totalNodes=prodCount, prodCount=1,