miner: show id and height when a block is found

This commit is contained in:
stoffu 2018-06-20 12:08:40 +09:00 committed by wowario
parent bbf769360d
commit 458155e5c8
No known key found for this signature in database
GPG key ID: 24DCBE762DE9C111

View file

@ -485,7 +485,7 @@ namespace cryptonote
{ {
//we lucky! //we lucky!
++m_config.current_extra_message_index; ++m_config.current_extra_message_index;
MGINFO_GREEN("Found block for difficulty: " << local_diff); MGINFO_GREEN("Found block " << get_block_hash(b) << " at height " << height << " for difficulty: " << local_diff);
if(!m_phandler->handle_block_found(b)) if(!m_phandler->handle_block_found(b))
{ {
--m_config.current_extra_message_index; --m_config.current_extra_message_index;