|
1 | 1 | #!/usr/bin/env python3 |
2 | | -# Copyright (c) 2015-2024 The Dash Core developers |
| 2 | +# Copyright (c) 2015-2025 The Dash Core developers |
3 | 3 | # Distributed under the MIT software license, see the accompanying |
4 | 4 | # file COPYING or http://www.opensource.org/licenses/mit-license.php. |
5 | 5 |
|
@@ -84,7 +84,7 @@ def run_test(self): |
84 | 84 | h_100_1 = QuorumId(100, int(h_1, 16)) |
85 | 85 |
|
86 | 86 | 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) |
88 | 88 | self.wait_for_chainlocked_block_all_nodes(self.nodes[0].getbestblockhash()) |
89 | 89 |
|
90 | 90 | b_h_1 = self.nodes[0].getbestblockhash() |
@@ -115,7 +115,7 @@ def run_test(self): |
115 | 115 | assert_equal(projected_activation_height, softfork_info['height']) |
116 | 116 |
|
117 | 117 | # 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) |
119 | 119 |
|
120 | 120 | self.log.info("Wait for chainlock") |
121 | 121 | self.wait_for_chainlocked_block_all_nodes(self.nodes[0].getbestblockhash()) |
@@ -196,7 +196,7 @@ def run_test(self): |
196 | 196 | self.sync_blocks(nodes) |
197 | 197 | quorum_list = self.nodes[0].quorum("list", llmq_type) |
198 | 198 | 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] |
200 | 200 | self.log.info("h("+str(self.nodes[0].getblockcount())+") quorum_list:"+str(quorum_list)) |
201 | 201 |
|
202 | 202 | 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): |
388 | 388 | skip_count = cycle_length - (cur_block % cycle_length) |
389 | 389 | if skip_count != 0: |
390 | 390 | 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)) |
393 | 392 | self.log.info('Moved from block %d to %d' % (cur_block, self.nodes[0].getblockcount())) |
394 | 393 |
|
395 | 394 |
|
|
0 commit comments