aboutsummaryrefslogtreecommitdiff
path: root/src/pow.cpp
diff options
context:
space:
mode:
authorRoss Nicoll <[email protected]>2017-04-18 19:15:10 +0100
committerRoss Nicoll <[email protected]>2019-04-28 19:24:07 +0000
commit54b20fd87ab843fcc7a86ff463ec84ab862fd5ab (patch)
tree6780b33006ffed6586d23137f5c86577f68a8a66 /src/pow.cpp
parentCorrect build and test net seed (diff)
downloaddiscoin-54b20fd87ab843fcc7a86ff463ec84ab862fd5ab.tar.xz
discoin-54b20fd87ab843fcc7a86ff463ec84ab862fd5ab.zip
Add Dogecoin difficulty calculations
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 ab305649a..1b266f74a 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>
@@ -50,7 +51,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)