mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-10 22:18:54 +01:00
test: add coverage for 'listreceivedbyaddress' no change addrs return
This commit is contained in:
@@ -57,6 +57,11 @@ class ReceivedByTest(BitcoinTestFramework):
|
|||||||
{"address": empty_addr},
|
{"address": empty_addr},
|
||||||
{"address": empty_addr, "label": "", "amount": 0, "confirmations": 0, "txids": []})
|
{"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
|
# Test Address filtering
|
||||||
# Only on addr
|
# Only on addr
|
||||||
expected = {"address": addr, "label": "", "amount": Decimal("0.1"), "confirmations": 10, "txids": [txid, ]}
|
expected = {"address": addr, "label": "", "amount": Decimal("0.1"), "confirmations": 10, "txids": [txid, ]}
|
||||||
|
|||||||
Reference in New Issue
Block a user