diff options
| author | Gavin Andresen <[email protected]> | 2013-09-08 17:48:42 -0700 |
|---|---|---|
| committer | Gavin Andresen <[email protected]> | 2013-09-08 17:48:42 -0700 |
| commit | 4c723841e25650f045ed55b1e6a619d6d43398d5 (patch) | |
| tree | 9686abff9919b504fe98b3027312459b4b496669 /src/main.cpp | |
| parent | Merge pull request #2977 from laanwj/2013_09_release_process_protobuf (diff) | |
| parent | Don't warn about forks while fIsInitialDownload (diff) | |
| download | discoin-4c723841e25650f045ed55b1e6a619d6d43398d5.tar.xz discoin-4c723841e25650f045ed55b1e6a619d6d43398d5.zip | |
Merge pull request #2968 from TheBlueMatt/master
Don't warn about forks while fIsInitialDownload
Diffstat (limited to 'src/main.cpp')
| -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) |