Ensure z_viewtransaction returns Orchard details

This commit is contained in:
Steven Smith 2022-03-17 23:09:46 -07:00 committed by Kris Nuttycombe
parent 445f4de0f4
commit e1e480e9c4
1 changed files with 4 additions and 5 deletions

View File

@ -173,11 +173,10 @@ class WalletAccountsTest(BitcoinTestFramework):
txid = wait_and_assert_operationid_status(self.nodes[0], opid)
# The wallet should detect the new note as belonging to the UA.
# TODO: Uncomment once z_viewtransaction shows Orchard details (#5186).
#tx_details = self.nodes[0].z_viewtransaction(txid)
#assert_equal(len(tx_details['outputs']), 1)
#assert_equal(tx_details['outputs'][0]['type'], 'orchard')
#assert_equal(tx_details['outputs'][0]['address'], ua0)
tx_details = self.nodes[0].z_viewtransaction(txid)
assert_equal(len(tx_details['outputs']), 1)
assert_equal(tx_details['outputs'][0]['type'], 'orchard')
assert_equal(tx_details['outputs'][0]['address'], ua0)
# The new balance should not be visible with the default minconf, but should be
# visible with minconf=0.