mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-08-23 13:52:15 +02:00
test: add listtransactions/listsinceblock "trusted" coverage
This commit is contained in:
@@ -31,10 +31,10 @@ class ListTransactionsTest(BitcoinTestFramework):
|
||||
self.sync_all()
|
||||
assert_array_result(self.nodes[0].listtransactions(),
|
||||
{"txid": txid},
|
||||
{"category": "send", "amount": Decimal("-0.1"), "confirmations": 0})
|
||||
{"category": "send", "amount": Decimal("-0.1"), "confirmations": 0, "trusted": True})
|
||||
assert_array_result(self.nodes[1].listtransactions(),
|
||||
{"txid": txid},
|
||||
{"category": "receive", "amount": Decimal("0.1"), "confirmations": 0})
|
||||
{"category": "receive", "amount": Decimal("0.1"), "confirmations": 0, "trusted": False})
|
||||
self.log.info("Test confirmations change after mining a block")
|
||||
blockhash = self.generate(self.nodes[0], 1)[0]
|
||||
blockheight = self.nodes[0].getblockheader(blockhash)['height']
|
||||
|
Reference in New Issue
Block a user