]> Git Repo - VerusCoin.git/commitdiff
Add longest chain check
authormiketout <[email protected]>
Sun, 26 Aug 2018 21:15:06 +0000 (14:15 -0700)
committermiketout <[email protected]>
Sun, 26 Aug 2018 21:15:06 +0000 (14:15 -0700)
src/main.cpp

index 8e5625ab8796f7514d6ce4d0692d7c12ab7007dc..9dbcd6dbff3dff3cb64a458fd8b40e83bc0e6868 100644 (file)
@@ -1954,9 +1954,10 @@ bool IsInSync()
         }
     }
     pbi = chainActive.Tip();
-    if ( !pbi )
-        return false;
-    else if ( pindexBestHeader == 0 || ((pindexBestHeader->nHeight - 1) > pbi->nHeight) )
+    if ( !pbi || 
+         (pindexBestHeader == 0) || 
+         ((pindexBestHeader->nHeight - 1) > pbi->nHeight) || 
+         (komodo_longestchain() != 0 && komodo_longestchain() > pbi->nHeight) )
         return false;
     
     return true;
This page took 0.03627 seconds and 4 git commands to generate.