This commit is contained in:
jl777
2016-10-20 08:57:28 -03:00
parent 225eadf555
commit d2a23c0350

View File

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