diff options
author | Jon Atack <jon@atack.com> | 2021-09-29 18:10:12 +0200 |
---|---|---|
committer | Jon Atack <jon@atack.com> | 2021-09-29 22:36:57 +0200 |
commit | 296cfa312fd9ce19f1f820aeafa37d87764ad21d (patch) | |
tree | ba8f194c9251b65616d8928248b009067c175cc0 /test/functional/wallet_listsinceblock.py | |
parent | d95913fc432f0fde9dec743884b14c5df83727af (diff) |
test: add listtransactions/listsinceblock "trusted" coverage
Diffstat (limited to 'test/functional/wallet_listsinceblock.py')
-rwxr-xr-x | test/functional/wallet_listsinceblock.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/functional/wallet_listsinceblock.py b/test/functional/wallet_listsinceblock.py index bd3b29c81c..f4a00a8ec8 100755 --- a/test/functional/wallet_listsinceblock.py +++ b/test/functional/wallet_listsinceblock.py @@ -44,6 +44,14 @@ class ListSinceBlockTest(BitcoinTestFramework): def test_no_blockhash(self): self.log.info("Test no blockhash") txid = self.nodes[2].sendtoaddress(self.nodes[0].getnewaddress(), 1) + self.sync_all() + assert_array_result(self.nodes[0].listtransactions(), {"txid": txid}, { + "category": "receive", + "amount": 1, + "confirmations": 0, + "trusted": False, + }) + blockhash, = self.generate(self.nodes[2], 1) blockheight = self.nodes[2].getblockheader(blockhash)['height'] self.sync_all() @@ -56,6 +64,9 @@ class ListSinceBlockTest(BitcoinTestFramework): "blockheight": blockheight, "confirmations": 1, }) + assert_equal(len(txs), 1) + assert "trusted" not in txs[0] + assert_equal( self.nodes[0].listsinceblock(), {"lastblock": blockhash, |