|
|
@ -14,7 +14,6 @@ def get_sub_array_from_array(object_array, to_match): |
|
|
|
Finds and returns a sub array from an array of arrays. |
|
|
|
Finds and returns a sub array from an array of arrays. |
|
|
|
to_match should be a unique idetifier of a sub array |
|
|
|
to_match should be a unique idetifier of a sub array |
|
|
|
''' |
|
|
|
''' |
|
|
|
num_matched = 0 |
|
|
|
|
|
|
|
for item in object_array: |
|
|
|
for item in object_array: |
|
|
|
all_match = True |
|
|
|
all_match = True |
|
|
|
for key,value in to_match.items(): |
|
|
|
for key,value in to_match.items(): |
|
|
@ -104,7 +103,7 @@ class ReceivedByTest(BitcoinTestFramework): |
|
|
|
received_by_account_json = get_sub_array_from_array(self.nodes[1].listreceivedbyaccount(),{"account":account}) |
|
|
|
received_by_account_json = get_sub_array_from_array(self.nodes[1].listreceivedbyaccount(),{"account":account}) |
|
|
|
if len(received_by_account_json) == 0: |
|
|
|
if len(received_by_account_json) == 0: |
|
|
|
raise AssertionError("No accounts found in node") |
|
|
|
raise AssertionError("No accounts found in node") |
|
|
|
balance_by_account = rec_by_accountArr = self.nodes[1].getreceivedbyaccount(account) |
|
|
|
balance_by_account = self.nodes[1].getreceivedbyaccount(account) |
|
|
|
|
|
|
|
|
|
|
|
txid = self.nodes[0].sendtoaddress(addr, 0.1) |
|
|
|
txid = self.nodes[0].sendtoaddress(addr, 0.1) |
|
|
|
self.sync_all() |
|
|
|
self.sync_all() |
|
|
|