From bd70683491aeaad2c50e6be567b699dbc2a1b65a Mon Sep 17 00:00:00 2001 From: Duke Leto Date: Sat, 14 Nov 2020 19:59:38 -0500 Subject: [PATCH] Do not use longestchain in IsNotInSync --- src/main.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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() :