|
|
|
@ -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']
|
|
|
|
|