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-10-14 08:20:38 +0000 |
commit | 33d6825c6f91e99de65555d5f869134cfa54d967 (patch) | |
tree | 2a62324e61386b58e19678e587e2d0d2f2e14e6d /src/main.cpp | |
parent | 87a797a0166a03b716a2a6fa82f789655ef79a8c (diff) | |
download | bitcoin-33d6825c6f91e99de65555d5f869134cfa54d967.tar.xz |
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 77d9227f5c..29a84054ac 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1239,7 +1239,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; |