diff --git a/src/main.cpp b/src/main.cpp index c53a25a70..6ad8bfe97 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2473,11 +2473,8 @@ int IsNotInSync() } CBlockIndex *pbi = chainActive.Tip(); - int longestchain = komodo_longestchain(); - if ( !pbi || - (pindexBestHeader == 0) || - ((pindexBestHeader->GetHeight() - 1) > pbi->GetHeight()) || - (longestchain != 0 && longestchain > pbi->GetHeight()) ) + if ( !pbi || (pindexBestHeader == 0) || + ((pindexBestHeader->GetHeight() - 1) > pbi->GetHeight()) ) { return (pbi && pindexBestHeader && (pindexBestHeader->GetHeight() - 1) > pbi->GetHeight()) ? pindexBestHeader->GetHeight() - pbi->GetHeight() :