|
|
@ -94,7 +94,7 @@ def initialize_chain(test_dir): |
|
|
|
|
|
|
|
if not os.path.isdir(os.path.join("cache", "node0")): |
|
|
|
devnull = open("/dev/null", "w+") |
|
|
|
# Create cache directories, run bitcoinds: |
|
|
|
# Create cache directories, run hushds: |
|
|
|
for i in range(4): |
|
|
|
datadir=initialize_datadir("cache", i) |
|
|
|
args = [ os.getenv("BITCOIND", "hushd"), "-keypool=1", "-datadir="+datadir, "-discover=0" ] |
|
|
@ -181,7 +181,7 @@ def start_node(i, dirname, extra_args=None, rpchost=None, timewait=None, binary= |
|
|
|
""" |
|
|
|
datadir = os.path.join(dirname, "node"+str(i)) |
|
|
|
if binary is None: |
|
|
|
binary = os.getenv("BITCOIND", "bitcoind") |
|
|
|
binary = os.getenv("BITCOIND", "hushd") |
|
|
|
args = [ binary, "-datadir="+datadir, "-keypool=1", "-discover=0", "-rest" ] |
|
|
|
if extra_args is not None: args.extend(extra_args) |
|
|
|
bitcoind_processes[i] = subprocess.Popen(args) |
|
|
@ -204,7 +204,7 @@ def start_node(i, dirname, extra_args=None, rpchost=None, timewait=None, binary= |
|
|
|
|
|
|
|
def start_nodes(num_nodes, dirname, extra_args=None, rpchost=None, binary=None): |
|
|
|
""" |
|
|
|
Start multiple bitcoinds, return RPC connections to them |
|
|
|
Start multiple hushds, return RPC connections to them |
|
|
|
""" |
|
|
|
if extra_args is None: extra_args = [ None for i in range(num_nodes) ] |
|
|
|
if binary is None: binary = [ None for i in range(num_nodes) ] |
|
|
|