Add test for getblocktemplate longpolling

This commit is contained in:
Wladimir J. van der Laan
2014-07-11 14:39:50 +02:00
parent ff6a7af154
commit b45a6e8394
2 changed files with 97 additions and 1 deletions

View File

@@ -156,7 +156,9 @@ def start_node(i, dir, extra_args=None, rpchost=None):
["-rpcwait", "getblockcount"], stdout=devnull)
devnull.close()
url = "http://rt:rt@%s:%d" % (rpchost or '127.0.0.1', rpc_port(i))
return AuthServiceProxy(url)
proxy = AuthServiceProxy(url)
proxy.url = url # store URL on proxy for info
return proxy
def start_nodes(num_nodes, dir, extra_args=None, rpchost=None):
"""