Fix sync-spork logic
This commit is contained in:
parent
dec45ac67a
commit
c2a23c5beb
@ -106,11 +106,10 @@ void CMasternodeSync::Process()
|
|||||||
if(pnode->HasFulfilledRequest("getspork")) continue;
|
if(pnode->HasFulfilledRequest("getspork")) continue;
|
||||||
pnode->FulfilledRequest("getspork");
|
pnode->FulfilledRequest("getspork");
|
||||||
|
|
||||||
if(RequestedMasternodeAttempt <= 2){
|
|
||||||
pnode->PushMessage("getsporks"); //get current network sporks
|
pnode->PushMessage("getsporks"); //get current network sporks
|
||||||
if(RequestedMasternodeAttempt == 2) GetNextAsset();
|
if(RequestedMasternodeAttempt >= 2) GetNextAsset();
|
||||||
RequestedMasternodeAttempt++;
|
RequestedMasternodeAttempt++;
|
||||||
}
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} else if (RequestedMasternodeAssets == MASTERNODE_SYNC_SPORKS) {
|
} else if (RequestedMasternodeAssets == MASTERNODE_SYNC_SPORKS) {
|
||||||
|
Loading…
Reference in New Issue
Block a user