diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-10-02 09:47:53 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-10-02 09:47:54 +0200 |
commit | ad51e14583fbf6d53d5a2b22a0a0dbe4a51a9a7d (patch) | |
tree | 5371fd7c8eaaf0260db119f4d334bf8aab256087 /src/pow.cpp | |
parent | 3b390723c16d13271ee2675aff013fdd95d39c18 (diff) | |
parent | 470590277782cce2fe73275c74523aef59a51eab (diff) |
Merge pull request #4845
4705902 Avoid introducing a virtual into CChainParams (Wladimir J. van der Laan)
5e2e7fc Suggested corrections on comments, variable names. Also new test case testing the PoW skip in UNITTEST. (SergioDemianLerner)
a25fd6b Switch testing framework from MAIN to new UNITTEST network (SergioDemianLerner)
Diffstat (limited to 'src/pow.cpp')
-rw-r--r-- | src/pow.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pow.cpp b/src/pow.cpp index 893f6c18be..d50222849c 100644 --- a/src/pow.cpp +++ b/src/pow.cpp @@ -81,6 +81,10 @@ bool CheckProofOfWork(uint256 hash, unsigned int nBits) bool fNegative; bool fOverflow; uint256 bnTarget; + + if (Params().SkipProofOfWorkCheck()) + return true; + bnTarget.SetCompact(nBits, &fNegative, &fOverflow); // Check range |