diff options
author | Jorge Timón <jtimon@jtimon.cc> | 2015-02-15 02:21:42 +0100 |
---|---|---|
committer | Jorge Timón <jtimon@jtimon.cc> | 2015-03-26 00:47:51 +0100 |
commit | d698ef690f62c08676dcf9ddc0988e23aa81cbff (patch) | |
tree | d2c52a3b81167039a3991b0809c958862752a8de /src/rpcmining.cpp | |
parent | bd006110fb51f1fc0cbbeef3ed6eaae66b296d8c (diff) |
Consensus: Refactor: Decouple pow.o from chainparams.o
Diffstat (limited to 'src/rpcmining.cpp')
-rw-r--r-- | src/rpcmining.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpcmining.cpp b/src/rpcmining.cpp index 17db221cb4..fcba7e222d 100644 --- a/src/rpcmining.cpp +++ b/src/rpcmining.cpp @@ -181,7 +181,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->GetHash(), pblock->nBits, Params().GetConsensus())) { // 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; |