From 3f4727716a3b41f6687c676618b1bcd87bd17e33 Mon Sep 17 00:00:00 2001 From: Evan Duffield Date: Thu, 30 Jul 2015 06:18:31 -0700 Subject: [PATCH] disable sync-retry --- src/masternode-sync.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/masternode-sync.cpp b/src/masternode-sync.cpp index d3bbd7561..06a963df3 100644 --- a/src/masternode-sync.cpp +++ b/src/masternode-sync.cpp @@ -278,19 +278,19 @@ void CMasternodeSync::Process() if(RequestedMasternodeAssets == MASTERNODE_SYNC_BUDGET){ //we'll start rejecting votes if we accidentally get set as synced too soon if(lastBudgetItem > 0 && lastBudgetItem < GetTime() - MASTERNODE_SYNC_TIMEOUT && RequestedMasternodeAttempt >= 4){ //hasn't received a new item in the last five seconds, so we'll move to the - LogPrintf("CMasternodeSync::Process - HasNextFinalizedBudget %d nCountFailures %d IsBudgetPropEmpty %d\n", budget.HasNextFinalizedBudget(), nCountFailures, IsBudgetPropEmpty()); - if(budget.HasNextFinalizedBudget() || nCountFailures >= 2 || IsBudgetPropEmpty()) { + //LogPrintf("CMasternodeSync::Process - HasNextFinalizedBudget %d nCountFailures %d IsBudgetPropEmpty %d\n", budget.HasNextFinalizedBudget(), nCountFailures, IsBudgetPropEmpty()); + //if(budget.HasNextFinalizedBudget() || nCountFailures >= 2 || IsBudgetPropEmpty()) { GetNextAsset(); //try to activate our masternode if possible activeMasternode.ManageStatus(); - } else { //we've failed to sync, this state will reject the next budget block - LogPrintf("CMasternodeSync::Process - ERROR - Sync has failed, will retry later\n"); - RequestedMasternodeAssets = MASTERNODE_SYNC_FAILED; - RequestedMasternodeAttempt = 0; - lastFailure = GetTime(); - nCountFailures++; - } + // } else { //we've failed to sync, this state will reject the next budget block + // LogPrintf("CMasternodeSync::Process - ERROR - Sync has failed, will retry later\n"); + // RequestedMasternodeAssets = MASTERNODE_SYNC_FAILED; + // RequestedMasternodeAttempt = 0; + // lastFailure = GetTime(); + // nCountFailures++; + // } return; }