This commit is contained in:
jl777
2016-10-20 16:29:56 -03:00
parent b93286c28e
commit 4f5e03dbde
2 changed files with 4 additions and 6 deletions

View File

@@ -3137,8 +3137,8 @@ bool AcceptBlockHeader(const CBlockHeader& block, CValidationState& state, CBloc
return true;
}
//if (!CheckBlockHeader((*ppindex)->nHeight,*ppindex, block, state))
// return false;
if (!CheckBlockHeader(*ppindex!=0?(*ppindex)->nHeight:0,*ppindex, block, state))
return false;
// Get prev block index
CBlockIndex* pindexPrev = NULL;