Browse Source
Add test to check for presence of vpub_old & vpub_new in getrawtransaction
pull/4/head
Jack Grigg
7 years ago
No known key found for this signature in database
GPG Key ID: 6A6914DAFBEA00DA
1 changed files with
5 additions and
0 deletions
-
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 |
|
|
|