aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorLuke Dashjr <[email protected]>2015-04-09 11:50:18 +0000
committerLuke Dashjr <[email protected]>2015-09-29 19:46:34 +0000
commite761d7a94ff8b9f638b65b16f5c4ffab6573884a (patch)
tree4eeaa151e882c0c0e33c4be97048194fd8aad1b3 /src/main.cpp
parentClean up chainparams some more. (diff)
downloaddiscoin-e761d7a94ff8b9f638b65b16f5c4ffab6573884a.tar.xz
discoin-e761d7a94ff8b9f638b65b16f5c4ffab6573884a.zip
Bugfix: Allow mining on top of old tip blocks for testnet (fixes testnet-in-a-box use case)
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index d470ba900..8da2a80bb 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1091,7 +1091,7 @@ bool IsInitialBlockDownload()
if (lockIBDState)
return false;
bool state = (chainActive.Height() < pindexBestHeader->nHeight - 24 * 6 ||
- pindexBestHeader->GetBlockTime() < GetTime() - 24 * 60 * 60);
+ pindexBestHeader->GetBlockTime() < GetTime() - chainParams.MaxTipAge());
if (!state)
lockIBDState = true;
return state;