Skip to content

Commit f71a949

Browse files
committed
chore: fix burn views
1 parent 6225366 commit f71a949

File tree

1 file changed

+2
-4
lines changed
  • testnet/stacks-node/src/nakamoto_node

1 file changed

+2
-4
lines changed

testnet/stacks-node/src/nakamoto_node/miner.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1049,15 +1049,13 @@ impl BlockMinerThread {
10491049
// build the block itself
10501050
let (mut block, consumed, size, tx_events) = NakamotoBlockBuilder::build_nakamoto_block(
10511051
&chain_state,
1052-
// TODO (for reviewers): should this be `self.burn_election_block.consensus_hash`?
10531052
&burn_db
1054-
.index_handle_at_ch(&self.burn_block.consensus_hash)
1053+
.index_handle_at_ch(&self.burn_election_block.consensus_hash)
10551054
.map_err(|_| NakamotoNodeError::UnexpectedChainState)?,
10561055
&mut mem_pool,
10571056
&parent_block_info.stacks_parent_header,
10581057
&self.burn_election_block.consensus_hash,
1059-
// TODO (for reviewers): should this be `self.burn_election_block.total_burn`?
1060-
self.burn_block.total_burn,
1058+
self.burn_election_block.total_burn,
10611059
tenure_start_info,
10621060
self.config
10631061
.make_nakamoto_block_builder_settings(self.globals.get_miner_status()),

0 commit comments

Comments
 (0)