Skip to content

Commit d69045e

Browse files
committed
test: add coverage for 'listreceivedbyaddress' no change addrs return
1 parent 324f00a commit d69045e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/functional/wallet_listreceivedby.py

+5
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@ def run_test(self):
5757
{"address": empty_addr},
5858
{"address": empty_addr, "label": "", "amount": 0, "confirmations": 0, "txids": []})
5959

60+
# No returned addy should be a change addr
61+
for node in self.nodes:
62+
for addr_obj in node.listreceivedbyaddress():
63+
assert_equal(node.getaddressinfo(addr_obj["address"])["ischange"], False)
64+
6065
# Test Address filtering
6166
# Only on addr
6267
expected = {"address": addr, "label": "", "amount": Decimal("0.1"), "confirmations": 10, "txids": [txid, ]}

0 commit comments

Comments
 (0)