Skip to content

Commit 706806f

Browse files
Fix: Conditional logging for 'Proceeding to mine blocks' message
1 parent 6f498f8 commit 706806f

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

testnet/stacks-node/src/run_loop/nakamoto.rs

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -701,10 +701,17 @@ impl RunLoop {
701701

702702
// at tip, and not downloading. proceed to mine.
703703
if last_tenure_sortition_height != sortition_db_height {
704-
info!(
705-
"Runloop: Synchronized full burnchain up to height {}. Proceeding to mine blocks",
706-
sortition_db_height
707-
);
704+
if is_miner {
705+
info!(
706+
"Runloop: Synchronized full burnchain up to height {}. Proceeding to mine blocks",
707+
sortition_db_height
708+
);
709+
} else {
710+
info!(
711+
"Runloop: Synchronized full burnchain up to height {}.",
712+
sortition_db_height
713+
);
714+
}
708715
last_tenure_sortition_height = sortition_db_height;
709716
}
710717
}

0 commit comments

Comments
 (0)