Pass along extra_args correctly to get correct rpc user/pass

This commit is contained in:
Jonathan "Duke" Leto
2018-08-07 20:57:42 +02:00
parent 3528faa711
commit 38a2d0c825

View File

@@ -209,7 +209,7 @@ def start_node(i, dirname, extra_args=None, rpchost=None, timewait=None, binary=
cmd = os.getenv("BITCOINCLI", "komodo-cli")
print("cmd=" + cmd)
#TODO: this will only work on the regtest AC, and probably breaks non-CC tests
cmd_args = " -datadir="+datadir + " -rpcwait -conf=" +datadir+"/REGTEST.conf getblockcount "
cmd_args = ' '.join(extra_args) + " -rpcwait -conf=" +datadir+"/REGTEST.conf getblockcount "
if os.getenv("PYTHON_DEBUG", ""):
print "start_node: komodod started, calling : " + cmd + " " + cmd_args
strcmd = cmd + " " + cmd_args