mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-25 10:43:19 -03:00
test: add coverage for 'listreceivedbyaddress' no change addrs return
This commit is contained in:
parent
324f00a642
commit
d69045e291
1 changed files with 5 additions and 0 deletions
|
@ -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, ]}
|
||||
|
|
Loading…
Add table
Reference in a new issue