Litecoin: fix setgenerate for regtest mode
This commit is contained in:
parent
6126d40f49
commit
41dd3033af
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user