This commit is contained in:
jl777
2016-10-20 07:08:28 -03:00
parent de6724df2b
commit b0b5e8f7c6
2 changed files with 2 additions and 2 deletions

View File

@@ -2961,7 +2961,7 @@ bool CheckBlockHeader(int32_t height,const CBlock& block, const CBlockHeader& bl
return state.DoS(100, error("CheckBlockHeader(): Equihash solution invalid"),REJECT_INVALID, "invalid-solution");
// Check proof of work matches claimed amount
komodo_block2pubkey33(pubkey33,block);
komodo_block2pubkey33(pubkey33,*(CBlock *)&block);
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");
return true;