13 threading.Thread.__init__(self)
15 templat = node.getblocktemplate()
26 Test longpolling with getblocktemplate. 30 print "Warning: this test will take about 70 seconds in the best case. Be patient." 34 longpollid = templat[
'longpollid']
37 assert(templat2[
'longpollid'] == longpollid)
44 assert(thr.is_alive())
50 assert(
not thr.is_alive())
57 assert(
not thr.is_alive())
66 assert(
not thr.is_alive())
68 if __name__ ==
'__main__':
def get_rpc_proxy(url, node_number, timeout=None)
def random_transaction(nodes, amount, min_fee, fee_increment, fee_variants)
UniValue getblocktemplate(const UniValue ¶ms, bool fHelp)
UniValue generate(const UniValue ¶ms, bool fHelp)