aboutsummaryrefslogtreecommitdiff
path: root/qa/rpc-tests
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2015-04-09 17:36:10 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2015-04-09 17:36:10 +0200
commit4ac79f99b02e1d288dda353c15f4183180e538df (patch)
tree46884399720df7a89740822d968ea7c81626d594 /qa/rpc-tests
parent57026a29bcbc7538526d4e77951833ae61f8690f (diff)
downloadbitcoin-4ac79f99b02e1d288dda353c15f4183180e538df.tar.xz
Fix travis after merging #5957
New wallet tests have been added in the meantime and need to be updated to use `generate` instead of `setgenerate`.
Diffstat (limited to 'qa/rpc-tests')
-rwxr-xr-xqa/rpc-tests/wallet.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/qa/rpc-tests/wallet.py b/qa/rpc-tests/wallet.py
index 0301f160c1..5f3178c606 100755
--- a/qa/rpc-tests/wallet.py
+++ b/qa/rpc-tests/wallet.py
@@ -163,13 +163,13 @@ class WalletTest (BitcoinTestFramework):
txIdNotBroadcasted = self.nodes[0].sendtoaddress(self.nodes[2].getnewaddress(), 2);
txObjNotBroadcasted = self.nodes[0].gettransaction(txIdNotBroadcasted)
- self.nodes[1].setgenerate(True, 1) #mine a block, tx should not be in there
+ self.nodes[1].generate(1) #mine a block, tx should not be in there
self.sync_all()
assert_equal(self.nodes[2].getbalance(), Decimal('59.99800000')); #should not be changed because tx was not broadcasted
#now broadcast from another node, mine a block, sync, and check the balance
self.nodes[1].sendrawtransaction(txObjNotBroadcasted['hex'])
- self.nodes[1].setgenerate(True, 1)
+ self.nodes[1].generate(1)
self.sync_all()
txObjNotBroadcasted = self.nodes[0].gettransaction(txIdNotBroadcasted)
assert_equal(self.nodes[2].getbalance(), Decimal('61.99800000')); #should not be
@@ -186,7 +186,7 @@ class WalletTest (BitcoinTestFramework):
connect_nodes_bi(self.nodes,0,2)
sync_blocks(self.nodes)
- self.nodes[0].setgenerate(True, 1)
+ self.nodes[0].generate(1)
sync_blocks(self.nodes)
#tx should be added to balance because after restarting the nodes tx should be broadcastet