diff options
| author | Ross Nicoll <[email protected]> | 2017-04-18 19:15:10 +0100 |
|---|---|---|
| committer | Ross Nicoll <[email protected]> | 2018-09-19 19:21:49 +0100 |
| commit | f0f9fd02926cc4b52ac1b73f494238d674a8c86c (patch) | |
| tree | 8b3231cc8ef01a3e5146c9218eeb658bc5dc312e /src/pow.cpp | |
| parent | Litecoin: Fix zeitgeist2 attack thanks to Lolcust and ArtForz. This fixes an ... (diff) | |
| download | discoin-f0f9fd02926cc4b52ac1b73f494238d674a8c86c.tar.xz discoin-f0f9fd02926cc4b52ac1b73f494238d674a8c86c.zip | |
Add Dogecoin difficulty calculations
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 c629ee4a4..64628b73f 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" @@ -53,7 +54,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) |