Skip to content

Commit 4ac79f9

Browse files
committed
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`.
1 parent 57026a2 commit 4ac79f9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

qa/rpc-tests/wallet.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,13 +163,13 @@ def run_test (self):
163163

164164
txIdNotBroadcasted = self.nodes[0].sendtoaddress(self.nodes[2].getnewaddress(), 2);
165165
txObjNotBroadcasted = self.nodes[0].gettransaction(txIdNotBroadcasted)
166-
self.nodes[1].setgenerate(True, 1) #mine a block, tx should not be in there
166+
self.nodes[1].generate(1) #mine a block, tx should not be in there
167167
self.sync_all()
168168
assert_equal(self.nodes[2].getbalance(), Decimal('59.99800000')); #should not be changed because tx was not broadcasted
169169

170170
#now broadcast from another node, mine a block, sync, and check the balance
171171
self.nodes[1].sendrawtransaction(txObjNotBroadcasted['hex'])
172-
self.nodes[1].setgenerate(True, 1)
172+
self.nodes[1].generate(1)
173173
self.sync_all()
174174
txObjNotBroadcasted = self.nodes[0].gettransaction(txIdNotBroadcasted)
175175
assert_equal(self.nodes[2].getbalance(), Decimal('61.99800000')); #should not be
@@ -186,7 +186,7 @@ def run_test (self):
186186
connect_nodes_bi(self.nodes,0,2)
187187
sync_blocks(self.nodes)
188188

189-
self.nodes[0].setgenerate(True, 1)
189+
self.nodes[0].generate(1)
190190
sync_blocks(self.nodes)
191191

192192
#tx should be added to balance because after restarting the nodes tx should be broadcastet

0 commit comments

Comments
 (0)