mirror of
https://github.com/monero-project/monero.git
synced 2024-12-14 12:26:31 +02:00
Merge pull request #3687
6b13976
blockchain: log in DEBUG when a block is found, and where (moneromooo-monero)
This commit is contained in:
commit
6be2516140
@ -2282,19 +2282,19 @@ bool Blockchain::have_block(const crypto::hash& id) const
|
|||||||
|
|
||||||
if(m_db->block_exists(id))
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(m_alternative_chains.count(id))
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(m_invalid_blocks.count(id))
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user