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, *, chain, host, rpc_port, p2p_port, timewait, bitcoind, bitcoin_cli, | ||||
append_config(datadir, extra_conf) | append_config(datadir, extra_conf) | ||||
# Most callers will just need to add extra args to the default list | # Most callers will just need to add extra args to the default list | ||||
# below. | # below. | ||||
# For those callers that need more flexibility, they can access the | # For those callers that need more flexibility, they can access the | ||||
# default args using the provided facilities. | # default args using the provided facilities. | ||||
# Note that common args are set in the config file (see | # Note that common args are set in the config file (see | ||||
# initialize_datadir) | # initialize_datadir) | ||||
self.extra_args = extra_args | self.extra_args = extra_args | ||||
# Configuration for logging is set as command-line args rather than in the bitcoin.conf file. | |||||
# This means that starting a bitcoind using the temp dir to debug a failed test won't | |||||
# spam debug.log. | |||||
self.default_args = [ | self.default_args = [ | ||||
"-datadir=" + self.datadir, | "-datadir=" + self.datadir, | ||||
"-logtimemicros", | "-logtimemicros", | ||||
"-logthreadnames", | |||||
"-debug", | "-debug", | ||||
"-debugexclude=libevent", | "-debugexclude=libevent", | ||||
"-debugexclude=leveldb", | "-debugexclude=leveldb", | ||||
"-uacomment=" + self.name, | "-uacomment=" + self.name, | ||||
"-noprinttoconsole", | "-noprinttoconsole", | ||||
] | ] | ||||
if emulator is not None: | if emulator is not None: | ||||
▲ Show 20 Lines • Show All 604 Lines • Show Last 20 Lines |