From 55ed3f14751206fc87f0cbf8cb4e223efacef338 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Tue, 3 Sep 2013 22:06:02 -0400 Subject: [PATCH] Don't warn about forks while fIsInitialDownload --- src/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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)