@@ -11009,7 +11009,7 @@ fn allow_reorg_within_first_proposal_burn_block_timing_secs() {
11009
11009
. nakamoto_test_skip_commit_op
11010
11010
. set ( true ) ;
11011
11011
11012
- info ! ( "------------------------- Miner 1 Mines a Nakamoto Block N (Globally Accepted) -------------------------" ) ;
11012
+ info ! ( "------------------------- Miner 1 Mines a Nakamoto Block N -------------------------" ) ;
11013
11013
let blocks_processed_before_1 = blocks_mined1. load ( Ordering :: SeqCst ) ;
11014
11014
let stacks_height_before = signer_test
11015
11015
. stacks_client
@@ -11039,6 +11039,8 @@ fn allow_reorg_within_first_proposal_burn_block_timing_secs() {
11039
11039
11040
11040
let blocks = test_observer:: get_mined_nakamoto_blocks ( ) ;
11041
11041
let block_n = blocks. last ( ) . unwrap ( ) . clone ( ) ;
11042
+ let block_n_height = block_n. stacks_height ;
11043
+ info ! ( "Block N: {block_n_height}" ) ;
11042
11044
let block_n_signature_hash = block_n. signer_signature_hash ;
11043
11045
11044
11046
let info_after = get_chain_info ( & conf) ;
@@ -11128,6 +11130,8 @@ fn allow_reorg_within_first_proposal_burn_block_timing_secs() {
11128
11130
assert ! ( tip. sortition) ;
11129
11131
assert_eq ! ( tip. miner_pk_hash. unwrap( ) , mining_pkh_2) ;
11130
11132
11133
+ assert_eq ! ( get_chain_info( & conf) . stacks_tip_height, block_n_height + 1 ) ;
11134
+
11131
11135
info ! ( "------------------------- Miner 2 Mines N+2 and N+3 -------------------------" ) ;
11132
11136
let blocks_processed_before_2 = blocks_mined2. load ( Ordering :: SeqCst ) ;
11133
11137
let stacks_height_before = signer_test
@@ -11195,6 +11199,8 @@ fn allow_reorg_within_first_proposal_burn_block_timing_secs() {
11195
11199
} )
11196
11200
. expect ( "Timed out waiting for Miner 2 to Mine Block N+3" ) ;
11197
11201
11202
+ assert_eq ! ( get_chain_info( & conf) . stacks_tip_height, block_n_height + 3 ) ;
11203
+
11198
11204
info ! ( "------------------------- Miner 1 Wins the Next Tenure -------------------------" ) ;
11199
11205
11200
11206
let blocks_processed_before_1 = blocks_mined1. load ( Ordering :: SeqCst ) ;
@@ -11212,6 +11218,10 @@ fn allow_reorg_within_first_proposal_burn_block_timing_secs() {
11212
11218
)
11213
11219
. expect ( "Timed out waiting for Miner 1 to Mine Block N+1'" ) ;
11214
11220
11221
+ let blocks = test_observer:: get_mined_nakamoto_blocks ( ) ;
11222
+ let last_block = blocks. last ( ) . expect ( "No blocks mined" ) ;
11223
+ assert_eq ! ( last_block. stacks_height, block_n_height + 1 ) ;
11224
+
11215
11225
info ! ( "------------------------- Miner 1 Mines N+2 -------------------------" ) ;
11216
11226
11217
11227
let blocks_processed_before_1 = blocks_mined1. load ( Ordering :: SeqCst ) ;
@@ -11237,6 +11247,10 @@ fn allow_reorg_within_first_proposal_burn_block_timing_secs() {
11237
11247
} )
11238
11248
. expect ( "Timed out waiting for Miner 1 to Mine Block N+2" ) ;
11239
11249
11250
+ let blocks = test_observer:: get_mined_nakamoto_blocks ( ) ;
11251
+ let last_block = blocks. last ( ) . expect ( "No blocks mined" ) ;
11252
+ assert_eq ! ( last_block. stacks_height, block_n_height + 2 ) ;
11253
+
11240
11254
info ! ( "------------------------- Shutdown -------------------------" ) ;
11241
11255
rl2_coord_channels
11242
11256
. lock ( )
0 commit comments