This commit is contained in:
jl777
2016-10-20 09:39:58 -03:00
parent 9ef4eb9f8e
commit 5b39c60ee5

View File

@@ -266,7 +266,7 @@ bool CBlockTreeDB::ReadFlag(const std::string &name, bool &fValue) {
return true;
}
void komodo_index2pubkey33(uint8_t *pubkey33,CBlockIndex *pindex);
void komodo_index2pubkey33(uint8_t *pubkey33,CBlockIndex *pindex,int32_t height);
bool CBlockTreeDB::LoadBlockIndexGuts()
{
@@ -307,7 +307,7 @@ bool CBlockTreeDB::LoadBlockIndexGuts()
pindexNew->nStatus = diskindex.nStatus;
pindexNew->nTx = diskindex.nTx;
uint8_t pubkey33[33];
komodo_index2pubkey33(pubkey33,pindexNew);
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());
pcursor->Next();