diff options
author | Luke Dashjr <luke-jr+git@utopios.org> | 2015-04-09 11:50:18 +0000 |
---|---|---|
committer | Luke Dashjr <luke-jr+git@utopios.org> | 2015-09-29 19:46:34 +0000 |
commit | e761d7a94ff8b9f638b65b16f5c4ffab6573884a (patch) | |
tree | 4eeaa151e882c0c0e33c4be97048194fd8aad1b3 /src/main.cpp | |
parent | 5fb5c9b21335edfe193513ae3fe3f09c1cefe24b (diff) |
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.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index d470ba9003..8da2a80bb0 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; |