Skip to content
Permalink
Browse files

When a block is found in DEBUG log where it is

  • Loading branch information...
miltonf committed Feb 28, 2019
1 parent 99317a5 commit 08de03f337543d4aae82c1d929a1126f0f2399b3
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/cryptonote_core/blockchain.cpp
@@ -2264,19 +2264,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;
}

0 comments on commit 08de03f

Please sign in to comment.
You can’t perform that action at this time.