@@ -84,7 +84,7 @@ def run_test(self):
8484 h_100_1 = QuorumId (100 , int (h_1 , 16 ))
8585
8686 self .log .info ("Mine single block, wait for chainlock" )
87- self .generate (self .nodes [0 ], 1 , sync_fun = self . no_op )
87+ self .generate (self .nodes [0 ], 1 )
8888 self .wait_for_chainlocked_block_all_nodes (self .nodes [0 ].getbestblockhash ())
8989
9090 b_h_1 = self .nodes [0 ].getbestblockhash ()
@@ -115,7 +115,7 @@ def run_test(self):
115115 assert_equal (projected_activation_height , softfork_info ['height' ])
116116
117117 # v20 is active for the next block, not for the tip
118- self .generate (self .nodes [0 ], 1 , sync_fun = self . no_op )
118+ self .generate (self .nodes [0 ], 1 )
119119
120120 self .log .info ("Wait for chainlock" )
121121 self .wait_for_chainlocked_block_all_nodes (self .nodes [0 ].getbestblockhash ())
@@ -196,7 +196,7 @@ def run_test(self):
196196 self .sync_blocks (nodes )
197197 quorum_list = self .nodes [0 ].quorum ("list" , llmq_type )
198198 quorum_blockhash = self .nodes [0 ].getbestblockhash ()
199- fallback_blockhash = self .generate (self .nodes [0 ], 1 , sync_fun = self . no_op )[0 ]
199+ fallback_blockhash = self .generate (self .nodes [0 ], 1 )[0 ]
200200 self .log .info ("h(" + str (self .nodes [0 ].getblockcount ())+ ") quorum_list:" + str (quorum_list ))
201201
202202 assert_greater_than_or_equal (len (intersection (quorum_members_0_0 , quorum_members_1_0 )), 3 )
@@ -388,8 +388,7 @@ def move_to_next_cycle(self):
388388 skip_count = cycle_length - (cur_block % cycle_length )
389389 if skip_count != 0 :
390390 self .bump_mocktime (1 )
391- self .generate (self .nodes [0 ], skip_count , sync_fun = self .no_op )
392- self .sync_blocks (nodes )
391+ self .generate (self .nodes [0 ], skip_count , sync_fun = lambda : self .sync_blocks (nodes ))
393392 self .log .info ('Moved from block %d to %d' % (cur_block , self .nodes [0 ].getblockcount ()))
394393
395394
0 commit comments