Do not use longestchain in IsNotInSync
This commit is contained in:
@@ -2473,11 +2473,8 @@ int IsNotInSync()
|
|||||||
}
|
}
|
||||||
|
|
||||||
CBlockIndex *pbi = chainActive.Tip();
|
CBlockIndex *pbi = chainActive.Tip();
|
||||||
int longestchain = komodo_longestchain();
|
if ( !pbi || (pindexBestHeader == 0) ||
|
||||||
if ( !pbi ||
|
((pindexBestHeader->GetHeight() - 1) > pbi->GetHeight()) )
|
||||||
(pindexBestHeader == 0) ||
|
|
||||||
((pindexBestHeader->GetHeight() - 1) > pbi->GetHeight()) ||
|
|
||||||
(longestchain != 0 && longestchain > pbi->GetHeight()) )
|
|
||||||
{
|
{
|
||||||
return (pbi && pindexBestHeader && (pindexBestHeader->GetHeight() - 1) > pbi->GetHeight()) ?
|
return (pbi && pindexBestHeader && (pindexBestHeader->GetHeight() - 1) > pbi->GetHeight()) ?
|
||||||
pindexBestHeader->GetHeight() - pbi->GetHeight() :
|
pindexBestHeader->GetHeight() - pbi->GetHeight() :
|
||||||
|
|||||||
Reference in New Issue
Block a user