mirror of
https://github.com/dashpay/dash.git
synced 2024-12-28 21:42:47 +01:00
Small syncing improvement
This commit is contained in:
parent
494afeef50
commit
916deaa398
@ -722,6 +722,8 @@ CAmount CBudgetManager::GetTotalBudget(int nHeight)
|
||||
|
||||
void CBudgetManager::NewBlock()
|
||||
{
|
||||
if(!masternodeSync.IsSynced()) return;
|
||||
|
||||
CheckAndRemove();
|
||||
|
||||
if (strBudgetMode == "suggest") { //suggest the budget we see
|
||||
|
@ -107,7 +107,8 @@ void CMasternodeSync::Process()
|
||||
return;
|
||||
}
|
||||
|
||||
if(IsInitialBlockDownload()) return;
|
||||
//don't begin syncing until we're at a recent block
|
||||
if(pindexPrev->nTime + 600 < GetTime()) return;
|
||||
|
||||
if(RequestedMasternodeAssets == MASTERNODE_SYNC_LIST){
|
||||
if(lastMasternodeList > 0 && lastMasternodeList < GetTime() - MASTERNODE_SYNC_TIMEOUT){ //hasn't received a new item in the last five seconds, so we'll move to the
|
||||
|
Loading…
Reference in New Issue
Block a user