aboutsummaryrefslogtreecommitdiff
path: root/src/pow.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2014-07-07 10:28:31 +0200
committerWladimir J. van der Laan <[email protected]>2014-07-07 10:29:10 +0200
commit4851d0960313a43b754d8b652ffe194fbb52c597 (patch)
tree92859c1d16409ac6adf8b13140ba3527d27c72c4 /src/pow.cpp
parentMerge pull request #4470 (diff)
parentUse GetBlockTime() more (diff)
downloaddiscoin-4851d0960313a43b754d8b652ffe194fbb52c597.tar.xz
discoin-4851d0960313a43b754d8b652ffe194fbb52c597.zip
Merge pull request #4446
209377a Use GetBlockTime() more (jtimon)
Diffstat (limited to 'src/pow.cpp')
-rw-r--r--src/pow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pow.cpp b/src/pow.cpp
index 952250dec..c0d0a7ca2 100644
--- a/src/pow.cpp
+++ b/src/pow.cpp
@@ -26,7 +26,7 @@ unsigned int GetNextWorkRequired(const CBlockIndex* pindexLast, const CBlockHead
// Special difficulty rule for testnet:
// If the new block's timestamp is more than 2* 10 minutes
// then allow mining of a min-difficulty block.
- if (pblock->nTime > pindexLast->nTime + Params().TargetSpacing()*2)
+ if (pblock->GetBlockTime() > pindexLast->GetBlockTime() + Params().TargetSpacing()*2)
return nProofOfWorkLimit;
else
{