Skip to content

Commit

Permalink
fix: mine_cycle_quorum should use correct quorum size
Browse files Browse the repository at this point in the history
  • Loading branch information
UdjinM6 committed Oct 29, 2023
1 parent 45cf172 commit 21c6f0c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions test/functional/test_framework/test_framework.py
Original file line number Diff line number Diff line change
Expand Up @@ -1047,6 +1047,7 @@ def set_dash_test_params(self, num_nodes, masterodes_count, extra_args=None, fas
# LLMQ default test params (no need to pass -llmqtestparams)
self.llmq_size = 3
self.llmq_threshold = 2
self.llmq_size_dip0024 = 4

# This is nRequestTimeout in dash-q-recovery thread
self.quorum_data_thread_request_timeout_seconds = 10
Expand Down Expand Up @@ -1813,13 +1814,13 @@ def mine_cycle_quorum(self, llmq_type_name="llmq_test_dip0024", llmq_type=103,
spork23_active = self.nodes[0].spork('show')['SPORK_23_QUORUM_POSE'] <= 1

if expected_connections is None:
expected_connections = (self.llmq_size - 1) if spork21_active else 2
expected_connections = (self.llmq_size_dip0024 - 1) if spork21_active else 2
if expected_members is None:
expected_members = self.llmq_size
expected_members = self.llmq_size_dip0024
if expected_contributions is None:
expected_contributions = self.llmq_size
expected_contributions = self.llmq_size_dip0024
if expected_commitments is None:
expected_commitments = self.llmq_size
expected_commitments = self.llmq_size_dip0024
if mninfos_online is None:
mninfos_online = self.mninfo.copy()
if mninfos_valid is None:
Expand Down

0 comments on commit 21c6f0c

Please sign in to comment.