add budget timeout

This commit is contained in:
Evan Duffield 2015-08-13 20:56:58 -07:00
parent 4727d92d1f
commit dc70f73221

View File

@ -331,6 +331,13 @@ void CMasternodeSync::Process()
return;
}
// timeout
if(lastBudgetItem == 0 && RequestedMasternodeAttempt >= MASTERNODE_SYNC_THRESHOLD*3) {
GetNextAsset();
activeMasternode.ManageStatus();
return;
}
if(pnode->HasFulfilledRequest("busync")) continue;
pnode->FulfilledRequest("busync");