mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-10 20:03:34 -03:00
tests: Add a new functional test for gettransaction
This commit is contained in:
parent
7f3bb247a8
commit
b8b3f0435a
1 changed files with 5 additions and 0 deletions
|
@ -499,6 +499,11 @@ class WalletTest(BitcoinTestFramework):
|
|||
self.nodes[0].setlabel(change, 'foobar')
|
||||
assert_equal(self.nodes[0].getaddressinfo(change)['ischange'], False)
|
||||
|
||||
# Test "decoded" field value in gettransaction response
|
||||
self.log.info("Testing gettransaction decoding...")
|
||||
tx = self.nodes[0].gettransaction(txid=txid, decode=True)
|
||||
assert_equal(tx["decoded"], self.nodes[0].decoderawtransaction(tx["hex"]))
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
WalletTest().main()
|
||||
|
|
Loading…
Reference in a new issue