diff --git a/src/rpcmining.cpp b/src/rpcmining.cpp index 2ee1438be..3e6b7b1fb 100644 --- a/src/rpcmining.cpp +++ b/src/rpcmining.cpp @@ -178,7 +178,7 @@ Value setgenerate(const Array& params, bool fHelp) LOCK(cs_main); IncrementExtraNonce(pblock, chainActive.Tip(), nExtraNonce); } - while (!CheckProofOfWork(pblock->GetHash(), pblock->nBits)) { + while (!CheckProofOfWork(pblock->GetPoWHash(), pblock->nBits)) { // Yes, there is a chance every nonce could fail to satisfy the -regtest // target -- 1 in 2^(2^32). That ain't gonna happen. ++pblock->nNonce;