This commit is contained in:
jl777
2016-10-20 10:41:15 -03:00
parent 6dabcca455
commit e778963cb8
3 changed files with 11 additions and 3 deletions

View File

@@ -307,6 +307,7 @@ bool CBlockTreeDB::LoadBlockIndexGuts()
pindexNew->nStatus = diskindex.nStatus;
pindexNew->nTx = diskindex.nTx;
uint8_t pubkey33[33];
printf("from txdb\n");
komodo_index2pubkey33(pubkey33,pindexNew,pindexNew->nHeight);
if (!CheckProofOfWork(pindexNew->nHeight,pubkey33,pindexNew->GetBlockHash(), pindexNew->nBits, Params().GetConsensus()))
return error("LoadBlockIndex(): CheckProofOfWork failed: %s", pindexNew->ToString());