Fix sync-spork logic

This commit is contained in:
Evan Duffield 2015-07-22 16:51:51 -07:00
parent dec45ac67a
commit c2a23c5beb

View File

@ -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) {