diff options
| author | SergioDemianLerner <[email protected]> | 2014-09-04 16:23:42 -0300 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2014-10-02 13:51:39 +0200 |
| commit | f0fd00cb77d91ec9ac729bc4cf35ff7d9f676d8f (patch) | |
| tree | a7c6249b856c74dd8600c8244ea9e8331d74eb6c /src/pow.cpp | |
| parent | Revert merge of pull #4845 (diff) | |
| download | discoin-f0fd00cb77d91ec9ac729bc4cf35ff7d9f676d8f.tar.xz discoin-f0fd00cb77d91ec9ac729bc4cf35ff7d9f676d8f.zip | |
Switch testing framework from MAIN to new UNITTEST network
UNITTEST inherites from MAIN but allows synamically changing its parameters using the ModifiableParams() interface
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 893f6c18b..d50222849 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 |