Testchains: Don't check the genesis block

Rebased by Pieter Wuille.
Cleanup by Matt Corallo.
This commit is contained in:
Jorge Timón 2015-07-03 16:11:06 +02:00 committed by instagibbs
parent 20a84b8c45
commit 6bb56092b8
3 changed files with 5 additions and 1 deletions

View file

@ -199,7 +199,7 @@ bool CBlockTreeDB::LoadBlockIndexGuts(boost::function<CBlockIndex*(const uint256
pindexNew->nStatus = diskindex.nStatus;
pindexNew->nTx = diskindex.nTx;
if (!CheckProofOfWork(pindexNew->GetBlockHash(), pindexNew->nBits, Params().GetConsensus()))
if (!CheckProofOfWork(pindexNew->GetBlockHash(), pindexNew->nBits, consensusParams))
return error("LoadBlockIndex(): CheckProofOfWork failed: %s", pindexNew->ToString());
pcursor->Next();