Fix RPC tests
This commit is contained in:
@@ -24,7 +24,7 @@ class PourTxTest(BitcoinTestFramework):
|
|||||||
|
|
||||||
(total_in, inputs) = gather_inputs(self.nodes[0], 40)
|
(total_in, inputs) = gather_inputs(self.nodes[0], 40)
|
||||||
protect_tx = self.nodes[0].createrawtransaction(inputs, {})
|
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"])
|
receive_result = self.nodes[0].zcrawreceive(zcsecretkey, pour_result["encryptedbucket1"])
|
||||||
assert_equal(receive_result["exists"], False)
|
assert_equal(receive_result["exists"], False)
|
||||||
@@ -47,4 +47,4 @@ class PourTxTest(BitcoinTestFramework):
|
|||||||
assert_equal(receive_result["exists"], True)
|
assert_equal(receive_result["exists"], True)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
PourTxTest().main()
|
PourTxTest().main()
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ class PourTxTest(BitcoinTestFramework):
|
|||||||
for i in range(4):
|
for i in range(4):
|
||||||
(total_in, inputs) = gather_inputs(self.nodes[i], 40)
|
(total_in, inputs) = gather_inputs(self.nodes[i], 40)
|
||||||
pool[i] = self.nodes[i].createrawtransaction(inputs, {})
|
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"])
|
signed = self.nodes[i].signrawtransaction(pool[i]["rawtxn"])
|
||||||
|
|
||||||
# send the tx to both halves of the network
|
# send the tx to both halves of the network
|
||||||
@@ -180,4 +180,4 @@ class PourTxTest(BitcoinTestFramework):
|
|||||||
sync_blocks(self.nodes)
|
sync_blocks(self.nodes)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
PourTxTest().main()
|
PourTxTest().main()
|
||||||
|
|||||||
Reference in New Issue
Block a user