From 8db0dd93e493710e37032630e543a4063da83911 Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Thu, 9 Feb 2017 16:38:01 +0000 Subject: [PATCH] Add test to check for presence of vpub_old & vpub_new in getrawtransaction --- qa/rpc-tests/wallet.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qa/rpc-tests/wallet.py b/qa/rpc-tests/wallet.py index e32561881..8ad4fba3a 100755 --- a/qa/rpc-tests/wallet.py +++ b/qa/rpc-tests/wallet.py @@ -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