@@ -278,12 +278,12 @@ impl SignerTest<SpawnedSigner> {
278
278
self . run_until_epoch_3_boundary ( ) ;
279
279
280
280
let commits_submitted = self . running_nodes . commits_submitted . clone ( ) ;
281
-
281
+ let commits_before = commits_submitted . load ( Ordering :: SeqCst ) ;
282
282
info ! ( "Waiting 1 burnchain block for miner VRF key confirmation" ) ;
283
283
// Wait one block to confirm the VRF register, wait until a block commit is submitted
284
284
next_block_and ( & mut self . running_nodes . btc_regtest_controller , 60 , || {
285
285
let commits_count = commits_submitted. load ( Ordering :: SeqCst ) ;
286
- Ok ( commits_count >= 1 )
286
+ Ok ( commits_count > commits_before )
287
287
} )
288
288
. unwrap ( ) ;
289
289
info ! ( "Ready to mine Nakamoto blocks!" ) ;
@@ -293,6 +293,8 @@ impl SignerTest<SpawnedSigner> {
293
293
fn mine_and_verify_confirmed_naka_block ( & mut self , timeout : Duration , num_signers : usize ) {
294
294
info ! ( "------------------------- Try mining one block -------------------------" ) ;
295
295
296
+ let reward_cycle = self . get_current_reward_cycle ( ) ;
297
+
296
298
self . mine_nakamoto_block ( timeout) ;
297
299
298
300
// Verify that the signers accepted the proposed block, sending back a validate ok response
@@ -310,8 +312,10 @@ impl SignerTest<SpawnedSigner> {
310
312
// NOTE: signature.len() does not need to equal signers.len(); the stacks miner can finish the block
311
313
// whenever it has crossed the threshold.
312
314
assert ! ( signature. len( ) >= num_signers * 7 / 10 ) ;
313
-
314
- let reward_cycle = self . get_current_reward_cycle ( ) ;
315
+ info ! (
316
+ "Verifying signatures against signers for reward cycle {:?}" ,
317
+ reward_cycle
318
+ ) ;
315
319
let signers = self . get_reward_set_signers ( reward_cycle) ;
316
320
317
321
// Verify that the signers signed the proposed block
@@ -2784,8 +2788,7 @@ fn signer_set_rollover() {
2784
2788
. running_nodes
2785
2789
. btc_regtest_controller
2786
2790
. get_burnchain ( )
2787
- . reward_cycle_to_block_height ( next_reward_cycle)
2788
- . saturating_add ( 1 ) ;
2791
+ . reward_cycle_to_block_height ( next_reward_cycle) ;
2789
2792
2790
2793
info ! ( "---- Mining to next reward set calculation -----" ) ;
2791
2794
signer_test. run_until_burnchain_height_nakamoto (
0 commit comments