@@ -92,10 +92,10 @@ def test_no_banning(self, expected_connections=None):
92
92
for mn in self .mninfo :
93
93
assert not self .check_punished (mn ) and not self .check_banned (mn )
94
94
95
- def mine_quorum_no_check (self , expected_good_nodes , mninfos_online ):
95
+ def mine_quorum_less_checks (self , expected_good_nodes , mninfos_online ):
96
96
# Unlike in mine_quorum we skip most of the checks and only care about
97
- # nodes moving forward from phase to phase and the fact that the quorum is actually mined.
98
- self .log .info ("Mining a quorum with no checks" )
97
+ # nodes moving forward from phase to phase correctly and the fact that the quorum is actually mined.
98
+ self .log .info ("Mining a quorum with less checks" )
99
99
nodes = [self .nodes [0 ]] + [mn .node for mn in mninfos_online ]
100
100
101
101
# move forward to next DKG
@@ -112,7 +112,7 @@ def mine_quorum_no_check(self, expected_good_nodes, mninfos_online):
112
112
self .move_blocks (nodes , 2 )
113
113
114
114
self .log .info ("Waiting for phase 2 (contribute)" )
115
- self .wait_for_quorum_phase (q , 2 , expected_good_nodes , None , 0 , mninfos_online )
115
+ self .wait_for_quorum_phase (q , 2 , expected_good_nodes , "receivedContributions" , expected_good_nodes , mninfos_online )
116
116
self .move_blocks (nodes , 2 )
117
117
118
118
self .log .info ("Waiting for phase 3 (complain)" )
@@ -124,7 +124,7 @@ def mine_quorum_no_check(self, expected_good_nodes, mninfos_online):
124
124
self .move_blocks (nodes , 2 )
125
125
126
126
self .log .info ("Waiting for phase 5 (commit)" )
127
- self .wait_for_quorum_phase (q , 5 , expected_good_nodes , None , 0 , mninfos_online )
127
+ self .wait_for_quorum_phase (q , 5 , expected_good_nodes , "receivedPrematureCommitments" , expected_good_nodes , mninfos_online )
128
128
self .move_blocks (nodes , 2 )
129
129
130
130
self .log .info ("Waiting for phase 6 (mining)" )
@@ -175,7 +175,7 @@ def test_banning(self, invalidate_proc, expected_connections):
175
175
# 6th time is when it should be banned for sure.
176
176
for _ in range (6 ):
177
177
self .reset_probe_timeouts ()
178
- self .mine_quorum_no_check (expected_contributors - 1 , mninfos_online )
178
+ self .mine_quorum_less_checks (expected_contributors - 1 , mninfos_online )
179
179
180
180
assert self .check_banned (mn )
181
181
0 commit comments