@@ -6234,7 +6234,7 @@ fn test_pox_no_anchor_selected() {
6234
6234
let burnchain_tip = burnchain. get_canonical_chain_tip ( ) . unwrap ( ) ;
6235
6235
let burnchain_blinded = get_burnchain_db ( path_blinded, None ) ;
6236
6236
6237
- eprintln ! ( "Making block {}" , ix ) ;
6237
+ eprintln ! ( "Making block {ix}" ) ;
6238
6238
let ( op, block) = if ix == 0 {
6239
6239
make_genesis_block (
6240
6240
& b,
@@ -6300,8 +6300,7 @@ fn test_pox_no_anchor_selected() {
6300
6300
let ic = sort_db. index_handle_at_tip ( ) ;
6301
6301
let bhh = ic. get_last_anchor_block_hash ( ) . unwrap ( ) . unwrap ( ) ;
6302
6302
eprintln ! (
6303
- "Anchor block={}, selected at height={}" ,
6304
- & bhh,
6303
+ "Anchor block={bhh}, selected at height={}" ,
6305
6304
SortitionDB :: get_block_snapshot_for_winning_stacks_block(
6306
6305
& sort_db. index_conn( ) ,
6307
6306
& ic. context. chain_tip,
@@ -6333,7 +6332,7 @@ fn test_pox_no_anchor_selected() {
6333
6332
6334
6333
// load the block into staging
6335
6334
let block_hash = block. header . block_hash ( ) ;
6336
- eprintln ! ( "Block hash={}, ix={}" , & block_hash , ix ) ;
6335
+ eprintln ! ( "Block hash={block_hash }, ix={ix}" ) ;
6337
6336
6338
6337
assert_eq ! ( & tip. winning_stacks_block_hash, & block_hash) ;
6339
6338
stacks_blocks. push ( ( tip. sortition_id . clone ( ) , block. clone ( ) ) ) ;
@@ -6356,10 +6355,12 @@ fn test_pox_no_anchor_selected() {
6356
6355
assert_eq ! ( & pox_id. to_string( ) , "1111" ) ;
6357
6356
}
6358
6357
6358
+ // Because there is a missing anchor block, the blinded coordinator will not advance on any
6359
+ // fork that does not build upon one
6359
6360
{
6360
6361
let ic = sort_db_blind. index_handle_at_tip ( ) ;
6361
6362
let pox_id = ic. get_pox_id ( ) . unwrap ( ) ;
6362
- assert_eq ! ( & pox_id. to_string( ) , "1101 " ) ;
6363
+ assert_eq ! ( & pox_id. to_string( ) , "11 " ) ;
6363
6364
}
6364
6365
6365
6366
for ( sort_id, block) in stacks_blocks. iter ( ) {
0 commit comments