aboutsummaryrefslogtreecommitdiff
path: root/qa
diff options
context:
space:
mode:
authorJonas Schnelli <jonas.schnelli@include7.ch>2015-04-21 20:32:37 +0200
committerJonas Schnelli <jonas.schnelli@include7.ch>2015-04-21 20:33:02 +0200
commit6b4feb89a81a6f166f13ecf480d18ccea5ff462e (patch)
tree30ec3a5b9f51c9161864159dae87eec5587e6c09 /qa
parent97ee8665497c78aff2f30c2f652b7afd376b5323 (diff)
downloadbitcoin-6b4feb89a81a6f166f13ecf480d18ccea5ff462e.tar.xz
[QA] rest.py RPC test: change setgenerate() to generate()
Diffstat (limited to 'qa')
-rwxr-xr-xqa/rpc-tests/rest.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/qa/rpc-tests/rest.py b/qa/rpc-tests/rest.py
index 3c4f83b90d..9f0d049fe9 100755
--- a/qa/rpc-tests/rest.py
+++ b/qa/rpc-tests/rest.py
@@ -59,16 +59,16 @@ class RESTTest (BitcoinTestFramework):
url = urlparse.urlparse(self.nodes[0].url)
print "Mining blocks..."
- self.nodes[0].setgenerate(True, 1)
+ self.nodes[0].generate(1)
self.sync_all()
- self.nodes[2].setgenerate(True, 100)
+ self.nodes[2].generate(100)
self.sync_all()
assert_equal(self.nodes[0].getbalance(), 50)
txid = self.nodes[0].sendtoaddress(self.nodes[1].getnewaddress(), 0.1)
self.sync_all()
- self.nodes[2].setgenerate(True, 1)
+ self.nodes[2].generate(1)
self.sync_all()
bb_hash = self.nodes[0].getbestblockhash()
@@ -198,7 +198,7 @@ class RESTTest (BitcoinTestFramework):
response = http_get_call(url.hostname, url.port, '/rest/getutxos'+self.FORMAT_SEPARATOR+'json', json_request, True)
assert_equal(response.status, 200) #must be a 500 because we exceeding the limits
- self.nodes[0].setgenerate(True, 1) #generate block to not affect upcomming tests
+ self.nodes[0].generate(1) #generate block to not affect upcomming tests
self.sync_all()
################