diff options
| author | Ross Nicoll <[email protected]> | 2015-06-28 21:27:28 +0100 |
|---|---|---|
| committer | Ross Nicoll <[email protected]> | 2015-06-28 22:10:58 +0100 |
| commit | 8da45ed40ba5ce2bc5e52f125dbc0a146c0e2a79 (patch) | |
| tree | 0e77c38c34b0f8af5ad0a2afa18729aeadfab9da /src/pow.cpp | |
| parent | Merge pull request #1188 from rnicoll/1.10-reward (diff) | |
| download | discoin-8da45ed40ba5ce2bc5e52f125dbc0a146c0e2a79.tar.xz discoin-8da45ed40ba5ce2bc5e52f125dbc0a146c0e2a79.zip | |
Added Digishield support and unit tests
Diffstat (limited to 'src/pow.cpp')
| -rw-r--r-- | src/pow.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pow.cpp b/src/pow.cpp index bb53ad204..44eee9c35 100644 --- a/src/pow.cpp +++ b/src/pow.cpp @@ -7,6 +7,7 @@ #include "arith_uint256.h" #include "chain.h" +#include "dogecoin.h" #include "primitives/block.h" #include "uint256.h" #include "util.h" @@ -47,7 +48,7 @@ unsigned int GetNextWorkRequired(const CBlockIndex* pindexLast, const CBlockHead const CBlockIndex* pindexFirst = pindexLast->GetAncestor(nHeightFirst); assert(pindexFirst); - return CalculateNextWorkRequired(pindexLast, pindexFirst->GetBlockTime(), params); + return CalculateDogecoinNextWorkRequired(pindexLast, pindexFirst->GetBlockTime(), params); } unsigned int CalculateNextWorkRequired(const CBlockIndex* pindexLast, int64_t nFirstBlockTime, const Consensus::Params& params) |