Skip to content

Commit

Permalink
chore: add comment to mock miner check for tenure parent
Browse files Browse the repository at this point in the history
  • Loading branch information
kantai authored Aug 1, 2024
1 parent 71cb039 commit 8e4031c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions testnet/stacks-node/src/nakamoto_node/miner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,9 @@ impl BlockMinerThread {
// now, actually run this tenure
loop {
let new_block = loop {
// If we're mock mining, we may not have processed the block that the
// actual tenure winner committed to yet. So, before attempting to
// mock mine, check if the parent is processed.
if self.config.get_node_config(false).mock_mining {
let burn_db_path = self.config.get_burn_db_file_path();
let mut burn_db = SortitionDB::open(
Expand Down

0 comments on commit 8e4031c

Please sign in to comment.