aboutsummaryrefslogtreecommitdiff
path: root/qa/rpc-tests/getblocktemplate_longpoll.py
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2015-03-31 20:28:28 -0700
committerPieter Wuille <pieter.wuille@gmail.com>2015-04-01 11:47:10 -0700
commit6b04508e37c5dd18cec1cd61cc4356bd208aa991 (patch)
treee3a5ac58ed8e891e55638af98db9b33257db57f3 /qa/rpc-tests/getblocktemplate_longpoll.py
parent0df67f1f7ab4adfe9f0b3ba6276e737b37826464 (diff)
Introduce separate 'generate' RPC call
Diffstat (limited to 'qa/rpc-tests/getblocktemplate_longpoll.py')
-rwxr-xr-xqa/rpc-tests/getblocktemplate_longpoll.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/qa/rpc-tests/getblocktemplate_longpoll.py b/qa/rpc-tests/getblocktemplate_longpoll.py
index b749b260b7..64fe49b835 100755
--- a/qa/rpc-tests/getblocktemplate_longpoll.py
+++ b/qa/rpc-tests/getblocktemplate_longpoll.py
@@ -51,7 +51,7 @@ class GetBlockTemplateLPTest(BitcoinTestFramework):
def run_test(self):
print "Warning: this test will take about 70 seconds in the best case. Be patient."
- self.nodes[0].setgenerate(True, 10)
+ self.nodes[0].generate(10)
templat = self.nodes[0].getblocktemplate()
longpollid = templat['longpollid']
# longpollid should not change between successive invocations if nothing else happens
@@ -66,7 +66,7 @@ class GetBlockTemplateLPTest(BitcoinTestFramework):
assert(thr.is_alive())
# Test 2: test that longpoll will terminate if another node generates a block
- self.nodes[1].setgenerate(True, 1) # generate a block on another node
+ self.nodes[1].generate(1) # generate a block on another node
# check that thread will exit now that new transaction entered mempool
thr.join(5) # wait 5 seconds or until thread exits
assert(not thr.is_alive())
@@ -74,7 +74,7 @@ class GetBlockTemplateLPTest(BitcoinTestFramework):
# Test 3: test that longpoll will terminate if we generate a block ourselves
thr = LongpollThread(self.nodes[0])
thr.start()
- self.nodes[0].setgenerate(True, 1) # generate a block on another node
+ self.nodes[0].generate(1) # generate a block on another node
thr.join(5) # wait 5 seconds or until thread exits
assert(not thr.is_alive())