mirror of
https://github.com/monero-project/monero.git
synced 2024-12-27 04:29:26 -05:00
miner: set thread name before logging
This commit is contained in:
parent
181a008aa3
commit
d1f204d640
@ -412,8 +412,8 @@ namespace cryptonote
|
||||
bool miner::worker_thread()
|
||||
{
|
||||
uint32_t th_local_index = boost::interprocess::ipcdetail::atomic_inc32(&m_thread_index);
|
||||
MGINFO("Miner thread was started ["<< th_local_index << "]");
|
||||
MLOG_SET_THREAD_NAME(std::string("[miner ") + std::to_string(th_local_index) + "]");
|
||||
MGINFO("Miner thread was started ["<< th_local_index << "]");
|
||||
uint32_t nonce = m_starter_nonce + th_local_index;
|
||||
uint64_t height = 0;
|
||||
difficulty_type local_diff = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user