aboutsummaryrefslogtreecommitdiff
path: root/src/pow.cpp
diff options
context:
space:
mode:
authorjtimon <jtimon@monetize.io>2014-06-28 23:36:06 +0200
committerjtimon <jtimon@monetize.io>2014-07-07 10:20:28 +0200
commit209377a7cb5a9ea5d724faf94846ee5bacd289e7 (patch)
tree41a311498d0758dfb108bc5d03037e5b08bb654f /src/pow.cpp
parent6654a87e7b2bd5d1d4a5c0af70d0468dfde300a9 (diff)
Use GetBlockTime() more
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 952250decd..c0d0a7ca20 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
{