stacks-network/stacks-core

Node always logs "Proceeding to mine blocks" regardless of miner status

Open

#4,944 建立於 2024年7月2日

在 GitHub 查看
 (1 留言) (0 反應) (0 負責人)Rust (758 fork)auto 404
enhancementgood first issuestale

倉庫指標

Star
 (3,063 star)
PR 合併指標
 (PR 指標待抓取)

描述

On a follower node, I see the following as expected:

INFO [1719960965.695137] [testnet/stacks-node/src/run_loop/neon.rs:384] [main] Will run as a Follower node

However, shortly after I also see:

INFO [1719960987.613683] [testnet/stacks-node/src/run_loop/neon.rs:1341] [main] Runloop: Synchronized full burnchain up to height 850443. Proceeding to mine blocks

This is confusing and incorrect, since this node is not a miner.

The code in question doesn't have any conditionals around miner status for this log message: https://github.com/stacks-network/stacks-core/blob/master/testnet/stacks-node/src/run_loop/nakamoto.rs#L705

貢獻者指南