Skip to content

Commit 8e4031c

Browse files
authored
chore: add comment to mock miner check for tenure parent
1 parent 71cb039 commit 8e4031c

File tree

1 file changed

+3
-0
lines changed
  • testnet/stacks-node/src/nakamoto_node

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,9 @@ impl BlockMinerThread {
222222
// now, actually run this tenure
223223
loop {
224224
let new_block = loop {
225+
// If we're mock mining, we may not have processed the block that the
226+
// actual tenure winner committed to yet. So, before attempting to
227+
// mock mine, check if the parent is processed.
225228
if self.config.get_node_config(false).mock_mining {
226229
let burn_db_path = self.config.get_burn_db_file_path();
227230
let mut burn_db = SortitionDB::open(

0 commit comments

Comments
 (0)