Skip to content

Commit

Permalink
Merge pull request #5348 from Parikalp-Bhardwaj/fix-log-message
Browse files Browse the repository at this point in the history
Fix: Conditional logging for 'Proceeding to mine blocks' message #5338
  • Loading branch information
obycode authored Oct 23, 2024
2 parents b39904a + ef984b8 commit f299dd1
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions testnet/stacks-node/src/run_loop/nakamoto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -723,10 +723,17 @@ impl RunLoop {

// at tip, and not downloading. proceed to mine.
if last_tenure_sortition_height != sortition_db_height {
info!(
"Runloop: Synchronized full burnchain up to height {}. Proceeding to mine blocks",
sortition_db_height
);
if is_miner {
info!(
"Runloop: Synchronized full burnchain up to height {}. Proceeding to mine blocks",
sortition_db_height
);
} else {
info!(
"Runloop: Synchronized full burnchain up to height {}.",
sortition_db_height
);
}
last_tenure_sortition_height = sortition_db_height;
globals.raise_initiative("runloop-synced".to_string());
}
Expand Down

0 comments on commit f299dd1

Please sign in to comment.