This commit is contained in:
jl777
2018-04-21 19:17:16 +03:00
parent a695f47ee3
commit e3e263b59d

View File

@@ -3559,7 +3559,7 @@ CBlockIndex* AddToBlockIndex(const CBlockHeader& block)
} }
if ( miPrev != mapBlockIndex.end() && (*miPrev).second == 0 ) if ( miPrev != mapBlockIndex.end() && (*miPrev).second == 0 )
{ {
fprintf(stderr,"edge case of both block and prevblock in the strange state\n"); //fprintf(stderr,"edge case of both block and prevblock in the strange state\n");
return(0); // return here to avoid the state of pindex->nHeight not set and pprev NULL return(0); // return here to avoid the state of pindex->nHeight not set and pprev NULL
} }
} }
@@ -4042,7 +4042,7 @@ bool AcceptBlock(CBlock& block, CValidationState& state, CBlockIndex** ppindex,
} }
if ( pindex == 0 ) if ( pindex == 0 )
{ {
fprintf(stderr,"AcceptBlock error null pindex\n"); //fprintf(stderr,"AcceptBlock error null pindex\n");
return false; return false;
} }
//fprintf(stderr,"acceptblockheader passed\n"); //fprintf(stderr,"acceptblockheader passed\n");