aboutsummaryrefslogtreecommitdiff
path: root/src/pow.cpp
diff options
context:
space:
mode:
authorRoss Nicoll <[email protected]>2015-06-28 21:27:28 +0100
committerRoss Nicoll <[email protected]>2015-06-28 22:10:58 +0100
commit8da45ed40ba5ce2bc5e52f125dbc0a146c0e2a79 (patch)
tree0e77c38c34b0f8af5ad0a2afa18729aeadfab9da /src/pow.cpp
parentMerge pull request #1188 from rnicoll/1.10-reward (diff)
downloaddiscoin-8da45ed40ba5ce2bc5e52f125dbc0a146c0e2a79.tar.xz
discoin-8da45ed40ba5ce2bc5e52f125dbc0a146c0e2a79.zip
Added Digishield support and unit tests
Diffstat (limited to 'src/pow.cpp')
-rw-r--r--src/pow.cpp3
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)