Skip to content

Commit

Permalink
Try to fix flaky IX tests in DIP3 tests (#2602)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
codablock authored and UdjinM6 committed Jan 3, 2019
1 parent 8967332 commit 96d4f74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qa/rpc-tests/dip3-deterministicmns.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down

0 comments on commit 96d4f74

Please sign in to comment.