This commit is contained in:
jl777
2016-10-21 07:37:06 -03:00
parent 5f197aeeba
commit 70ce79b02b
2 changed files with 4 additions and 3 deletions

View File

@@ -2967,8 +2967,8 @@ bool CheckBlockHeader(int32_t height,CBlockIndex *pindex, const CBlockHeader& bl
// Check proof of work matches claimed amount
//printf("from checkblockheader pindex.%p %p\n",pindex,mapBlockIndex[blockhdr.GetHash()]);
if ( pindex == 0 )
pindex = mapBlockIndex[blockhdr.GetHash()];
//if ( pindex == 0 )
// pindex = mapBlockIndex[blockhdr.GetHash()];
komodo_index2pubkey33(pubkey33,pindex,height);
if ( fCheckPOW && !CheckProofOfWork(height,pubkey33,blockhdr.GetHash(), blockhdr.nBits, Params().GetConsensus()) )
return state.DoS(50, error("CheckBlockHeader(): proof of work failed"),REJECT_INVALID, "high-hash");