You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (sporkManager.IsSporkActive(SPORK_8_MASTERNODE_PAYMENT_ENFORCEMENT)) {
368
-
syncTimeout("MASTERNODE_SYNC_LIST");
369
-
} else {
370
-
SwitchToNextAsset();
371
-
}
372
-
returnfalse;
373
-
}
378
+
// Don't request mnlist initial sync to more than 8 randomly ordered peers in this round
379
+
if (RequestedMasternodeAttempt >= MASTERNODE_SYNC_THRESHOLD * 4) returnfalse;
374
380
375
-
//Don't request mnlist initial sync to more than 8 randomly ordered peers in this round
376
-
if (RequestedMasternodeAttempt >= MASTERNODE_SYNC_THRESHOLD * 4)returnfalse;
381
+
//Request mnb sync if we haven't requested it yet.
382
+
if (pnode->HasFulfilledRequest("mnsync"))returntrue;
377
383
378
-
// Request mnb sync if we haven't requested it yet.
379
-
if (pnode->HasFulfilledRequest("mnsync")) returntrue;
384
+
// Try to request MN list sync.
385
+
if (!mnodeman.RequestMnList(pnode)) {
386
+
returntrue; // Failed, try next peer.
387
+
}
380
388
381
-
//Try to request MN list sync.
382
-
if (!mnodeman.RequestMnList(pnode)) {
383
-
returntrue; //Failed, try next peer.
384
-
}
389
+
//Mark sync requested.
390
+
pnode->FulfilledRequest("mnsync");
391
+
//Increase the sync attempt count
392
+
RequestedMasternodeAttempt++;
385
393
386
-
// Mark sync requested.
387
-
pnode->FulfilledRequest("mnsync");
388
-
// Increase the sync attempt count
389
-
RequestedMasternodeAttempt++;
394
+
returnfalse; // sleep 1 second before do another request round.
395
+
}
390
396
391
-
returnfalse; // sleep 1 second before do another request round.
397
+
if (RequestedMasternodeAssets == MASTERNODE_SYNC_MNW) {
398
+
if (fLegacyMnObsolete) {
399
+
SwitchToNextAsset();
400
+
returnfalse;
392
401
}
393
402
394
-
if (RequestedMasternodeAssets == MASTERNODE_SYNC_MNW) {
395
-
if (fLegacyMnObsolete) {
396
-
SwitchToNextAsset();
397
-
returnfalse;
398
-
}
403
+
if (lastMasternodeWinner > 0 && lastMasternodeWinner < GetTime() - MASTERNODE_SYNC_TIMEOUT * 2 && RequestedMasternodeAttempt >= MASTERNODE_SYNC_THRESHOLD) { //hasn't received a new item in the last five seconds, so we'll move to the
404
+
SwitchToNextAsset();
405
+
returnfalse;
406
+
}
399
407
400
-
if (lastMasternodeWinner > 0 && lastMasternodeWinner < GetTime() - MASTERNODE_SYNC_TIMEOUT * 2 && RequestedMasternodeAttempt >= MASTERNODE_SYNC_THRESHOLD) { //hasn't received a new item in the last five seconds, so we'll move to the
0 commit comments