Skip to content

Commit

Permalink
tests: Add a new functional test for gettransaction
Browse files Browse the repository at this point in the history
  • Loading branch information
darosior committed Jul 18, 2019
1 parent 8d610f4 commit e4a46c7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/functional/wallet_basic.py
Expand Up @@ -496,6 +496,11 @@ def run_test(self):
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()

0 comments on commit e4a46c7

Please sign in to comment.