From 96d4f745924cccb1d8cba88c73d52fa80ce73507 Mon Sep 17 00:00:00 2001 From: Alexander Block Date: Thu, 3 Jan 2019 10:20:41 +0100 Subject: [PATCH] Try to fix flaky IX tests in DIP3 tests (#2602) * Send larger amounts for IX * Don't use node0 as sender of IX transactions node0 tends to have many small UTXOs which result in TXs with many inputs and high CPU usage. --- qa/rpc-tests/dip3-deterministicmns.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qa/rpc-tests/dip3-deterministicmns.py b/qa/rpc-tests/dip3-deterministicmns.py index 92c2a3337e073..f499cbb82bb2f 100755 --- a/qa/rpc-tests/dip3-deterministicmns.py +++ b/qa/rpc-tests/dip3-deterministicmns.py @@ -365,7 +365,7 @@ def test_instantsend(self, tx_count, repeat, timeout=20): for j in range(repeat): for i in range(tx_count): while True: - from_node_idx = random.randint(0, len(self.nodes) - 1) + from_node_idx = random.randint(1, len(self.nodes) - 1) from_node = self.nodes[from_node_idx] if from_node is not None: break @@ -375,7 +375,7 @@ def test_instantsend(self, tx_count, repeat, timeout=20): if to_node is not None and from_node is not to_node: break to_address = to_node.getnewaddress() - txid = from_node.instantsendtoaddress(to_address, 0.01) + txid = from_node.instantsendtoaddress(to_address, 0.1) for node in self.nodes: if node is not None: self.wait_for_instant_lock(node, to_node_idx, txid, timeout=timeout)