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/main.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/main.cpp')
| -rw-r--r-- | src/main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index a3e36ff87..55485c86f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2305,7 +2305,8 @@ bool AcceptBlockHeader(CBlockHeader& block, CValidationState& state, CBlockIndex nHeight = pindexPrev->nHeight+1; // Check proof of work - if (block.nBits != GetNextWorkRequired(pindexPrev, &block)) + if ((!Params().SkipProofOfWorkCheck()) && + (block.nBits != GetNextWorkRequired(pindexPrev, &block))) return state.DoS(100, error("AcceptBlock() : incorrect proof of work"), REJECT_INVALID, "bad-diffbits"); |