From 70586ed61630aeca4fee36c415c6ba50e0e3ecbc Mon Sep 17 00:00:00 2001 From: Alexander Block Date: Wed, 2 Jan 2019 14:53:45 +0100 Subject: [PATCH] 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qa/rpc-tests/dip3-deterministicmns.py b/qa/rpc-tests/dip3-deterministicmns.py index c822f890848f8..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