Merge pull request #711 from jl777/jl777

Syntax
This commit is contained in:
jl777
2018-06-27 09:19:51 -11:00
committed by GitHub

View File

@@ -4065,7 +4065,7 @@ bool ContextualCheckBlockHeader(const CBlockHeader& block, CValidationState& sta
CBlockIndex* pcheckpoint = Checkpoints::GetLastCheckpoint(chainParams.Checkpoints()); CBlockIndex* pcheckpoint = Checkpoints::GetLastCheckpoint(chainParams.Checkpoints());
int32_t notarized_height; int32_t notarized_height;
if ( nHeight == 1 && chainActive.Tip() != 0 && chainActive.Tip()->nHeight > 1 ) if ( nHeight == 1 && chainActive.Tip() != 0 && chainActive.Tip()->nHeight > 1 )
return(false) return(false);
if ( nHeight != 0 ) if ( nHeight != 0 )
{ {
if ( pcheckpoint != 0 && nHeight < pcheckpoint->nHeight ) if ( pcheckpoint != 0 && nHeight < pcheckpoint->nHeight )