diff --git a/src/main.cpp b/src/main.cpp index b36c5d48e..1ba421160 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1857,7 +1857,10 @@ void CheckForkWarningConditions() } else { - LogPrintf("%s: Warning: Found invalid chain at least ~6 blocks longer than our best chain.\nChain state database corruption likely.\n", __func__); + if(pindexBestInvalid->nHeight > chainActive.Height() + 6) + LogPrintf("%s: Warning: Found invalid chain at least ~6 blocks longer than our best chain.\nChain state database corruption likely.\n", __func__); + else + LogPrintf("%s: Warning: Found invalid chain which has higher work (at least ~6 blocks worth of work) than our best chain.\nChain state database corruption likely.\n", __func__); fLargeWorkInvalidChainFound = true; } }