From b2cf9ba30080cc3e7b57a9d71f81991beb310315 Mon Sep 17 00:00:00 2001 From: Taylor Hornby Date: Thu, 28 Apr 2016 13:35:47 -0600 Subject: [PATCH] Fix RPC tests --- qa/rpc-tests/zcpour.py | 4 ++-- qa/rpc-tests/zcpourdoublespend.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/qa/rpc-tests/zcpour.py b/qa/rpc-tests/zcpour.py index ab23c6a97..9ac057691 100755 --- a/qa/rpc-tests/zcpour.py +++ b/qa/rpc-tests/zcpour.py @@ -24,7 +24,7 @@ class PourTxTest(BitcoinTestFramework): (total_in, inputs) = gather_inputs(self.nodes[0], 40) protect_tx = self.nodes[0].createrawtransaction(inputs, {}) - pour_result = self.nodes[0].zcrawpour(protect_tx, {}, {zcaddress:39.9}, 40, 0.1) + pour_result = self.nodes[0].zcrawpour(protect_tx, {}, {zcaddress:39.9}, 39.9, 0) receive_result = self.nodes[0].zcrawreceive(zcsecretkey, pour_result["encryptedbucket1"]) assert_equal(receive_result["exists"], False) @@ -47,4 +47,4 @@ class PourTxTest(BitcoinTestFramework): assert_equal(receive_result["exists"], True) if __name__ == '__main__': - PourTxTest().main() \ No newline at end of file + PourTxTest().main() diff --git a/qa/rpc-tests/zcpourdoublespend.py b/qa/rpc-tests/zcpourdoublespend.py index d7625a07e..35b0a4d3a 100755 --- a/qa/rpc-tests/zcpourdoublespend.py +++ b/qa/rpc-tests/zcpourdoublespend.py @@ -56,7 +56,7 @@ class PourTxTest(BitcoinTestFramework): for i in range(4): (total_in, inputs) = gather_inputs(self.nodes[i], 40) pool[i] = self.nodes[i].createrawtransaction(inputs, {}) - pool[i] = self.nodes[i].zcrawpour(pool[i], {}, {zcaddress:39.9}, 40, 0.1) + pool[i] = self.nodes[i].zcrawpour(pool[i], {}, {zcaddress:39.9}, 39.9, 0) signed = self.nodes[i].signrawtransaction(pool[i]["rawtxn"]) # send the tx to both halves of the network @@ -180,4 +180,4 @@ class PourTxTest(BitcoinTestFramework): sync_blocks(self.nodes) if __name__ == '__main__': - PourTxTest().main() \ No newline at end of file + PourTxTest().main()