File tree Expand file tree Collapse file tree 2 files changed +14
-9
lines changed Expand file tree Collapse file tree 2 files changed +14
-9
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ use stacks::chainstate::stacks::miner::{
44
44
use stacks:: chainstate:: stacks:: Error as ChainstateError ;
45
45
use stacks:: config:: BurnchainConfig ;
46
46
use stacks:: core:: mempool:: MemPoolDB ;
47
- use stacks:: core:: STACKS_EPOCH_LATEST_MARKER ;
47
+ use stacks:: core:: { marker_for_epoch , STACKS_EPOCH_LATEST_MARKER } ;
48
48
use stacks:: monitoring:: increment_stx_blocks_mined_counter;
49
49
use stacks:: net:: db:: LocalPeer ;
50
50
use stacks:: net:: p2p:: NetworkHandle ;
@@ -1139,7 +1139,11 @@ impl RelayerThread {
1139
1139
key_block_ptr : u32:: try_from ( key. block_height )
1140
1140
. expect ( "FATAL: burn block height exceeded u32" ) ,
1141
1141
key_vtxindex : u16:: try_from ( key. op_vtxindex ) . expect ( "FATAL: vtxindex exceeded u16" ) ,
1142
- memo : vec ! [ STACKS_EPOCH_LATEST_MARKER ] ,
1142
+ memo : if cfg ! ( test) && target_epoch. epoch_id > StacksEpochId :: latest ( ) {
1143
+ vec ! [ marker_for_epoch( target_epoch. epoch_id) . expect( "Unsupported epoch" ) ]
1144
+ } else {
1145
+ vec ! [ STACKS_EPOCH_LATEST_MARKER ]
1146
+ } ,
1143
1147
new_seed : VRFSeed :: from_proof ( & tip_vrf_proof) ,
1144
1148
parent_block_ptr : u32:: try_from ( commit_parent_block_burn_height)
1145
1149
. expect ( "FATAL: burn block height exceeded u32" ) ,
Original file line number Diff line number Diff line change @@ -14101,16 +14101,17 @@ fn test_epoch_3_3_activation() {
14101
14101
14102
14102
// mine until epoch 3.3 height
14103
14103
loop {
14104
- let commits_before = commits_submitted. load ( Ordering :: SeqCst ) ;
14105
14104
next_block_and_process_new_stacks_block ( & mut btc_regtest_controller, 60 , & coord_channel)
14106
14105
. unwrap ( ) ;
14107
- wait_for ( 20 , || {
14108
- Ok ( commits_submitted. load ( Ordering :: SeqCst ) > commits_before)
14109
- } )
14110
- . unwrap ( ) ;
14111
14106
14112
- let node_info = get_chain_info_opt ( & naka_conf) . unwrap ( ) ;
14113
- if node_info. burn_block_height
14107
+ // once we actually get a block in epoch 3.3, exit
14108
+ let blocks = test_observer:: get_blocks ( ) ;
14109
+ let last_block = blocks. last ( ) . unwrap ( ) ;
14110
+ if last_block
14111
+ . get ( "burn_block_height" )
14112
+ . unwrap ( )
14113
+ . as_u64 ( )
14114
+ . unwrap ( )
14114
14115
>= naka_conf. burnchain . epochs . as_ref ( ) . unwrap ( ) [ StacksEpochId :: Epoch33 ] . start_height
14115
14116
{
14116
14117
break ;
You can’t perform that action at this time.
0 commit comments