This commit is contained in:
jl777
2018-04-25 01:10:52 +03:00
parent 537cfef7d9
commit d60fb8fa36

View File

@@ -3798,7 +3798,8 @@ bool AcceptBlockHeader(int32_t *futureblockp,const CBlockHeader& block, CValidat
if (miSelf != mapBlockIndex.end()) if (miSelf != mapBlockIndex.end())
{ {
// Block header is already known. // Block header is already known.
pindex = miSelf->second; if ( (pindex= miSelf->second) == 0 )
pindex = AddToBlockIndex(block);
if (ppindex) if (ppindex)
*ppindex = pindex; *ppindex = pindex;
if ( pindex != 0 && pindex->nStatus & BLOCK_FAILED_MASK ) if ( pindex != 0 && pindex->nStatus & BLOCK_FAILED_MASK )