Add test to check for presence of vpub_old & vpub_new in getrawtransaction

This commit is contained in:
Jack Grigg 2017-02-09 16:38:01 +00:00
parent 6d0ab3ee59
commit 8db0dd93e4
No known key found for this signature in database
GPG Key ID: 6A6914DAFBEA00DA
1 changed files with 5 additions and 0 deletions

View File

@ -339,6 +339,11 @@ class WalletTest (BitcoinTestFramework):
myvjoinsplits = mytxdetails["vjoinsplit"]
assert_greater_than(len(myvjoinsplits), 0)
# the first (probably only) joinsplit should take in all the public value
myjoinsplit = self.nodes[2].getrawtransaction(mytxid, 1)["vjoinsplit"][0]
assert_equal(myjoinsplit["vpub_old"], zsendmanynotevalue)
assert_equal(myjoinsplit["vpub_new"], 0)
# send from private note to node 0 and node 2
node0balance = self.nodes[0].getbalance() # 25.99794745
node2balance = self.nodes[2].getbalance() # 16.99790000