]> Git Repo - VerusCoin.git/commitdiff
Test that a pure joinsplit will mine if other transactions are in the mempool.
authorSean Bowe <[email protected]>
Wed, 2 Nov 2016 20:25:07 +0000 (14:25 -0600)
committerSean Bowe <[email protected]>
Wed, 2 Nov 2016 20:25:07 +0000 (14:25 -0600)
qa/rpc-tests/zcjoinsplit.py

index b04345a8246909109066aabb7725b810d4fda54c..961f3a0a811264fbc8296f825ff94caae41c73d1 100755 (executable)
@@ -36,6 +36,14 @@ class JoinSplitTest(BitcoinTestFramework):
         receive_result = self.nodes[0].zcrawreceive(zcsecretkey, joinsplit_result["encryptednote1"])
         assert_equal(receive_result["exists"], True)
 
+        # The pure joinsplit we create should be mined in the next block
+        # despite other transactions being in the mempool.
+        addrtest = self.nodes[0].getnewaddress()
+        for xx in range(0,10):
+            self.nodes[0].generate(1)
+            for x in range(0,50):
+                self.nodes[0].sendtoaddress(addrtest, 0.01);
+
         joinsplit_tx = self.nodes[0].createrawtransaction([], {})
         joinsplit_result = self.nodes[0].zcrawjoinsplit(joinsplit_tx, {receive_result["note"] : zcsecretkey}, {zcaddress: 39.8}, 0, 0.1)
 
This page took 0.027464 seconds and 4 git commands to generate.