Set second

This commit is contained in:
jl777
2018-04-25 02:55:40 +03:00
parent 9376e387db
commit 6cc888dd99

View File

@@ -3312,8 +3312,10 @@ CBlockIndex* AddToBlockIndex(const CBlockHeader& block)
uint256 hash = block.GetHash();
BlockMap::iterator it = mapBlockIndex.find(hash);
if (it != mapBlockIndex.end())
return it->second;
{
if ( it->second != 0 )
return it->second;
}
// Construct new block index object
CBlockIndex* pindexNew = new CBlockIndex(block);
assert(pindexNew);