diff options
| author | Matt Corallo <[email protected]> | 2013-09-03 22:06:02 -0400 |
|---|---|---|
| committer | Matt Corallo <[email protected]> | 2013-09-03 22:22:13 -0400 |
| commit | 55ed3f14751206fc87f0cbf8cb4e223efacef338 (patch) | |
| tree | 0c1f0fbfca21d46eed328c8db4155bcf49d4c0e3 /src | |
| parent | Merge pull request #2948 from jgarzik/changeaddr (diff) | |
| download | discoin-55ed3f14751206fc87f0cbf8cb4e223efacef338.tar.xz discoin-55ed3f14751206fc87f0cbf8cb4e223efacef338.zip | |
Don't warn about forks while fIsInitialDownload
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index 24fd1fadb..b708879f1 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1421,6 +1421,11 @@ CBlockIndex *pindexBestForkTip = NULL, *pindexBestForkBase = NULL; void CheckForkWarningConditions() { + // Before we get past initial download, we cannot reliably alert about forks + // (we assume we don't get stuck on a fork before the last checkpoint) + if (IsInitialBlockDownload()) + return; + // If our best fork is no longer within 72 blocks (+/- 12 hours if no one mines it) // of our head, drop it if (pindexBestForkTip && nBestHeight - pindexBestForkTip->nHeight >= 72) |