From c2a23c5beb683c912c496b49e07bcbc7f47d8590 Mon Sep 17 00:00:00 2001 From: Evan Duffield Date: Wed, 22 Jul 2015 16:51:51 -0700 Subject: [PATCH] Fix sync-spork logic --- src/masternode-sync.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/masternode-sync.cpp b/src/masternode-sync.cpp index f08d93939..38af207c4 100644 --- a/src/masternode-sync.cpp +++ b/src/masternode-sync.cpp @@ -106,11 +106,10 @@ void CMasternodeSync::Process() if(pnode->HasFulfilledRequest("getspork")) continue; pnode->FulfilledRequest("getspork"); - if(RequestedMasternodeAttempt <= 2){ - pnode->PushMessage("getsporks"); //get current network sporks - if(RequestedMasternodeAttempt == 2) GetNextAsset(); - RequestedMasternodeAttempt++; - } + pnode->PushMessage("getsporks"); //get current network sporks + if(RequestedMasternodeAttempt >= 2) GetNextAsset(); + RequestedMasternodeAttempt++; + return; } } else if (RequestedMasternodeAssets == MASTERNODE_SYNC_SPORKS) {