aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authordarosior <darosior@protonmail.com>2019-06-13 00:11:27 +0200
committerdarosior <darosior@protonmail.com>2019-08-30 11:40:39 +0200
commitb8b3f0435a2837d3897e9e232ef6ca839ce74eb8 (patch)
treeb23deedcd2fa29a2797971d50f5e8a4f97c6b7a6 /test
parent7f3bb247a811582d1aa4805d8e601c19808dc7ba (diff)
tests: Add a new functional test for gettransaction
Diffstat (limited to 'test')
-rwxr-xr-xtest/functional/wallet_basic.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/functional/wallet_basic.py b/test/functional/wallet_basic.py
index 34e84fcf55..74350649c7 100755
--- a/test/functional/wallet_basic.py
+++ b/test/functional/wallet_basic.py
@@ -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()