Skip to content

Commit

Permalink
Don't use node0 as sender of IX transactions
Browse files Browse the repository at this point in the history
node0 tends to have many small UTXOs which result in TXs with many inputs
and high CPU usage.
  • Loading branch information
codablock committed Jan 2, 2019
1 parent aedd56b commit 70586ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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 Down

0 comments on commit 70586ed

Please sign in to comment.