diff --git a/src/main.cpp b/src/main.cpp index 250a72f72..f0a2c1e0e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -4205,7 +4205,7 @@ CBlockIndex *komodo_ensure(CBlock *pblock,uint256 hash) miSelf->second = AddToBlockIndex(*pblock); //fprintf(stderr,"Block header %s is already known, but without pindex -> ensured %p\n",hash.ToString().c_str(),miSelf->second); } - if ( hash != Params.GetConsensus().hashGenesisBlock ) + if ( hash != Params().GetConsensus().hashGenesisBlock ) { miSelf = mapBlockIndex.find(pblock->hashPrevBlock); if ( miSelf != mapBlockIndex.end() )