aboutsummaryrefslogtreecommitdiff
path: root/qa/rpc-tests/receivedby.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/receivedby.py
parent0df67f1f7ab4adfe9f0b3ba6276e737b37826464 (diff)
Introduce separate 'generate' RPC call
Diffstat (limited to 'qa/rpc-tests/receivedby.py')
-rwxr-xr-xqa/rpc-tests/receivedby.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/qa/rpc-tests/receivedby.py b/qa/rpc-tests/receivedby.py
index d3504e0920..1a681e1aae 100755
--- a/qa/rpc-tests/receivedby.py
+++ b/qa/rpc-tests/receivedby.py
@@ -69,7 +69,7 @@ class ReceivedByTest(BitcoinTestFramework):
{ },
True)
#Bury Tx under 10 block so it will be returned by listreceivedbyaddress
- self.nodes[1].setgenerate(True, 10)
+ self.nodes[1].generate(10)
self.sync_all()
check_array_result(self.nodes[1].listreceivedbyaddress(),
{"address":addr},
@@ -106,7 +106,7 @@ class ReceivedByTest(BitcoinTestFramework):
raise AssertionError("Wrong balance returned by getreceivedbyaddress, %0.2f"%(balance))
#Bury Tx under 10 block so it will be returned by the default getreceivedbyaddress
- self.nodes[1].setgenerate(True, 10)
+ self.nodes[1].generate(10)
self.sync_all()
balance = self.nodes[1].getreceivedbyaddress(addr)
if balance != Decimal("0.1"):
@@ -136,7 +136,7 @@ class ReceivedByTest(BitcoinTestFramework):
if balance != balance_by_account:
raise AssertionError("Wrong balance returned by getreceivedbyaccount, %0.2f"%(balance))
- self.nodes[1].setgenerate(True, 10)
+ self.nodes[1].generate(10)
self.sync_all()
# listreceivedbyaccount should return updated account balance
check_array_result(self.nodes[1].listreceivedbyaccount(),