Skip to content

Commit b8b3f04

Browse files
committed
tests: Add a new functional test for gettransaction
1 parent 7f3bb24 commit b8b3f04

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/functional/wallet_basic.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,11 @@ def run_test(self):
499499
self.nodes[0].setlabel(change, 'foobar')
500500
assert_equal(self.nodes[0].getaddressinfo(change)['ischange'], False)
501501

502+
# Test "decoded" field value in gettransaction response
503+
self.log.info("Testing gettransaction decoding...")
504+
tx = self.nodes[0].gettransaction(txid=txid, decode=True)
505+
assert_equal(tx["decoded"], self.nodes[0].decoderawtransaction(tx["hex"]))
506+
502507

503508
if __name__ == '__main__':
504509
WalletTest().main()

0 commit comments

Comments
 (0)