Changeset View
Changeset View
Standalone View
Standalone View
test/functional/test_framework/test_node.py
Show First 20 Lines • Show All 87 Lines • ▼ Show 20 Lines | def __init__(self, i, datadir, *, host, rpc_port, p2p_port, timewait, bitcoind, | ||||
"-debug", | "-debug", | ||||
"-debugexclude=libevent", | "-debugexclude=libevent", | ||||
"-debugexclude=leveldb", | "-debugexclude=leveldb", | ||||
"-mocktime=" + str(mocktime), | "-mocktime=" + str(mocktime), | ||||
"-uacomment=" + self.name, | "-uacomment=" + self.name, | ||||
"-noprinttoconsole", | "-noprinttoconsole", | ||||
] | ] | ||||
if not os.path.isfile(bitcoin_cli): | if use_cli and not os.path.isfile(bitcoin_cli): | ||||
raise FileNotFoundError( | raise FileNotFoundError( | ||||
"Binary '{}' could not be found.\nTry setting it manually:\n\tBITCOINCLI=<path/to/bitcoin-cli> {}".format(bitcoin_cli, sys.argv[0])) | "Binary '{}' could not be found.\nTry setting it manually:\n\tBITCOINCLI=<path/to/bitcoin-cli> {}".format(bitcoin_cli, sys.argv[0])) | ||||
self.cli = TestNodeCLI(bitcoin_cli, self.datadir) | self.cli = TestNodeCLI(bitcoin_cli, self.datadir) | ||||
self.use_cli = use_cli | self.use_cli = use_cli | ||||
self.running = False | self.running = False | ||||
self.process = None | self.process = None | ||||
self.rpc_connected = False | self.rpc_connected = False | ||||
▲ Show 20 Lines • Show All 402 Lines • Show Last 20 Lines |