@@ -139,7 +139,11 @@ pub struct BlockMinerThread {
139
139
registered_key : RegisteredKey ,
140
140
/// Burnchain block snapshot which elected this miner
141
141
burn_election_block : BlockSnapshot ,
142
- /// Current burnchain tip
142
+ /// Current burnchain tip as of the last TenureChange
143
+ /// * if the last tenure-change was a BlockFound, then this is the same as the
144
+ /// `burn_election_block`.
145
+ /// * otherwise, if the last tenure-change is an Extend, then this is the sortition of the burn
146
+ /// view consensus hash in the TenureChange
143
147
burn_block : BlockSnapshot ,
144
148
/// The start of the parent tenure for this tenure
145
149
parent_tenure_id : StacksBlockId ,
@@ -1050,12 +1054,12 @@ impl BlockMinerThread {
1050
1054
let ( mut block, consumed, size, tx_events) = NakamotoBlockBuilder :: build_nakamoto_block (
1051
1055
& chain_state,
1052
1056
& burn_db
1053
- . index_handle_at_ch ( & self . burn_election_block . consensus_hash )
1057
+ . index_handle_at_ch ( & self . burn_block . consensus_hash )
1054
1058
. map_err ( |_| NakamotoNodeError :: UnexpectedChainState ) ?,
1055
1059
& mut mem_pool,
1056
1060
& parent_block_info. stacks_parent_header ,
1057
1061
& self . burn_election_block . consensus_hash ,
1058
- self . burn_election_block . total_burn ,
1062
+ self . burn_block . total_burn ,
1059
1063
tenure_start_info,
1060
1064
self . config
1061
1065
. make_nakamoto_block_builder_settings ( self . globals . get_miner_status ( ) ) ,
0 commit comments