Litecoin: fix setgenerate for regtest mode

This commit is contained in:
pooler 2015-01-23 18:07:10 +01:00 committed by Warren Togami
parent 6126d40f49
commit 41dd3033af

View File

@ -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;