Litecoin: GetPoWHash for validation block tests

This commit is contained in:
Adrian Gallagher 2018-06-17 16:44:28 -07:00
parent 2bce040c78
commit 8203195e2e
No known key found for this signature in database
GPG Key ID: FE3348877809386C

View File

@ -71,7 +71,7 @@ std::shared_ptr<CBlock> FinalizeBlock(std::shared_ptr<CBlock> pblock)
{ {
pblock->hashMerkleRoot = BlockMerkleRoot(*pblock); pblock->hashMerkleRoot = BlockMerkleRoot(*pblock);
while (!CheckProofOfWork(pblock->GetHash(), pblock->nBits, Params().GetConsensus())) { while (!CheckProofOfWork(pblock->GetPoWHash(), pblock->nBits, Params().GetConsensus())) {
++(pblock->nNonce); ++(pblock->nNonce);
} }