diff options
author | furszy <matiasfurszyfer@protonmail.com> | 2022-06-22 12:46:43 -0300 |
---|---|---|
committer | furszy <matiasfurszyfer@protonmail.com> | 2022-06-22 12:51:30 -0300 |
commit | d69045e291e32e02d105d1b5ff1c8b86db0ae69e (patch) | |
tree | 990ad073339fe2f509f63cb0e2a234e149867d07 /test/functional/wallet_listreceivedby.py | |
parent | 324f00a6420bbd64c67c264e50632e6fa36ae732 (diff) |
test: add coverage for 'listreceivedbyaddress' no change addrs return
Diffstat (limited to 'test/functional/wallet_listreceivedby.py')
-rwxr-xr-x | test/functional/wallet_listreceivedby.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/functional/wallet_listreceivedby.py b/test/functional/wallet_listreceivedby.py index db1d8eb54a..7ae3a40eaf 100755 --- a/test/functional/wallet_listreceivedby.py +++ b/test/functional/wallet_listreceivedby.py @@ -57,6 +57,11 @@ class ReceivedByTest(BitcoinTestFramework): {"address": empty_addr}, {"address": empty_addr, "label": "", "amount": 0, "confirmations": 0, "txids": []}) + # No returned addy should be a change addr + for node in self.nodes: + for addr_obj in node.listreceivedbyaddress(): + assert_equal(node.getaddressinfo(addr_obj["address"])["ischange"], False) + # Test Address filtering # Only on addr expected = {"address": addr, "label": "", "amount": Decimal("0.1"), "confirmations": 10, "txids": [txid, ]} |