diff --git a/src/main.cpp b/src/main.cpp index b0d20b7c5..fc1d3fdd0 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3374,7 +3374,7 @@ bool ContextualCheckBlockHeader(const CBlockHeader& block, CValidationState& sta else if ( komodo_checkpoint(¬arized_height,nHeight,hash) < 0 ) { CBlockIndex *heightblock = chainActive[nHeight]; - if ( heightblock != 0 && pblockindex->GetBlockHash() == hash ) + if ( heightblock != 0 && heightblock->GetBlockHash() == hash ) { fprintf(stderr,"got a pre notarization block that matches height.%d\n",(int32_t)nHeight); return true;