Skip to content

Commit 2903c11

Browse files
committed
test: reduce overhead in feature_llmq_evo.py: only 2 regular nodes, only 4 evo nodes, less blocks generated
1 parent af768e4 commit 2903c11

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

test/functional/feature_llmq_evo.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,9 @@ def getmnlistdiff(self, baseBlockHash, blockHash):
4949

5050
class LLMQEvoNodesTest(DashTestFramework):
5151
def set_test_params(self):
52-
self.set_dash_test_params(4, 3, evo_count=5)
53-
self.mn_rr_height = 400
52+
# we just need a couple of regular nodes to be ensured that they are not included in platform quorum, 2 is enough
53+
self.set_dash_test_params(3, 2, evo_count=4)
54+
self.mn_rr_height = 320
5455

5556
def run_test(self):
5657
# Connect all nodes to node1 so that we always have the whole network connected
@@ -66,7 +67,7 @@ def run_test(self):
6667
b_0 = self.nodes[0].getbestblockhash()
6768
self.test_getmnlistdiff(null_hash, b_0, {}, [], expectedUpdated)
6869

69-
self.test_masternode_count(expected_mns_count=3, expected_evo_count=0)
70+
self.test_masternode_count(expected_mns_count=2, expected_evo_count=0)
7071
evo_protxhash_list = list()
7172
for i in range(self.evo_count):
7273
evo_info: MasternodeInfo = self.dynamically_add_masternode(evo=True)
@@ -77,7 +78,7 @@ def run_test(self):
7778
b_i = self.nodes[0].getbestblockhash()
7879
self.test_getmnlistdiff(null_hash, b_i, {}, [], expectedUpdated)
7980

80-
self.test_masternode_count(expected_mns_count=3, expected_evo_count=i+1)
81+
self.test_masternode_count(expected_mns_count=2, expected_evo_count=i+1)
8182
self.dynamically_evo_update_service(evo_info)
8283

8384
self.log.info("Test llmq_platform are formed only with EvoNodes")
@@ -93,7 +94,7 @@ def run_test(self):
9394
self.test_masternode_winners()
9495

9596
self.activate_mn_rr()
96-
self.log.info("Activated MN RewardReallocation, current height:" + str(self.nodes[0].getblockcount()))
97+
self.log.info(f"Activated MN RewardReallocation, current height: {self.nodes[0].getblockcount()}")
9798

9899
# Generate a few blocks to make EvoNode/MN analysis on a pure MN RewardReallocation window
99100
self.bump_mocktime(1)

0 commit comments

Comments
 (0)