use fBlockchainSynced right on IsBlockchainSynced start
This commit is contained in:
parent
2e8445e741
commit
2235671775
@ -41,6 +41,9 @@ bool CMasternodeSync::IsSynced()
|
||||
|
||||
bool CMasternodeSync::IsBlockchainSynced()
|
||||
{
|
||||
static bool fBlockchainSynced = false;
|
||||
if(fBlockchainSynced) return true;
|
||||
|
||||
if (fImporting || fReindex) return false;
|
||||
|
||||
TRY_LOCK(cs_main, lockMain);
|
||||
@ -49,8 +52,6 @@ bool CMasternodeSync::IsBlockchainSynced()
|
||||
CBlockIndex* pindex = chainActive.Tip();
|
||||
if(pindex == NULL) return false;
|
||||
|
||||
static bool fBlockchainSynced = false;
|
||||
if(fBlockchainSynced) return true;
|
||||
|
||||
if(pindex->nTime + 600 < GetTime())
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user