mirror of
https://github.com/monero-project/monero.git
synced 2024-12-23 12:09:54 +00:00
blockchain: log in DEBUG when a block is found, and where
Eases up debugging
This commit is contained in:
parent
8fdf645397
commit
6b13976330
1 changed files with 3 additions and 3 deletions
|
@ -2217,19 +2217,19 @@ bool Blockchain::have_block(const crypto::hash& id) const
|
|||
|
||||
if(m_db->block_exists(id))
|
||||
{
|
||||
LOG_PRINT_L3("block exists in main chain");
|
||||
LOG_PRINT_L2("block " << id << " found in main chain");
|
||||
return true;
|
||||
}
|
||||
|
||||
if(m_alternative_chains.count(id))
|
||||
{
|
||||
LOG_PRINT_L3("block found in m_alternative_chains");
|
||||
LOG_PRINT_L2("block " << id << " found in m_alternative_chains");
|
||||
return true;
|
||||
}
|
||||
|
||||
if(m_invalid_blocks.count(id))
|
||||
{
|
||||
LOG_PRINT_L3("block found in m_invalid_blocks");
|
||||
LOG_PRINT_L2("block " << id << " found in m_invalid_blocks");
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue