Changeset View
Changeset View
Standalone View
Standalone View
test/functional/getblocktemplate_longpoll.py
Show All 20 Lines | def __init__(self, node): | ||||
# connection from two threads | # connection from two threads | ||||
self.node = get_rpc_proxy( | self.node = get_rpc_proxy( | ||||
node.url, 1, timeout=600, coveragedir=node.coverage_dir) | node.url, 1, timeout=600, coveragedir=node.coverage_dir) | ||||
def run(self): | def run(self): | ||||
self.node.getblocktemplate({'longpollid': self.longpollid}) | self.node.getblocktemplate({'longpollid': self.longpollid}) | ||||
@extended | @tags('slow') | ||||
class GetBlockTemplateLPTest(BitcoinTestFramework): | class GetBlockTemplateLPTest(BitcoinTestFramework): | ||||
def set_test_params(self): | def set_test_params(self): | ||||
self.num_nodes = 2 | self.num_nodes = 2 | ||||
def run_test(self): | def run_test(self): | ||||
self.log.info( | self.log.info( | ||||
"Warning: this test will take about 70 seconds in the best case. Be patient.") | "Warning: this test will take about 70 seconds in the best case. Be patient.") | ||||
self.nodes[0].generate(10) | self.nodes[0].generate(10) | ||||
▲ Show 20 Lines • Show All 48 Lines • Show Last 20 Lines |