Browse Source

Litecoin: GetPoWHash for validation block tests

0.16
Adrian Gallagher 7 years ago
parent
commit
8203195e2e
No known key found for this signature in database
GPG Key ID: FE3348877809386C
  1. 2
      src/test/validation_block_tests.cpp

2
src/test/validation_block_tests.cpp

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

Loading…
Cancel
Save