Skip to content

Commit 3e05c82

Browse files
random-zebrafurszy
authored andcommitted
[TierTwo] Request missing mnw signer during initial sync
And remove extra call to SetBlockchainSync(false) from CMasternodeSync after calling CMasternodeSync::Reset()
1 parent 0ad6cd8 commit 3e05c82

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/masternode-payments.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -470,9 +470,8 @@ bool CMasternodePayments::ProcessMNWinner(CMasternodePaymentWinner& winner, CNod
470470
if (pmn == nullptr) {
471471
// it could be a non-synced masternode. ask for the mnb
472472
LogPrint(BCLog::MASTERNODE, "mnw - unknown masternode %s\n", winner.vinMasternode.prevout.hash.ToString());
473-
// Only ask for missing items after the initial syncing process is complete
474-
// otherwise will think a full sync succeeded when they return a result
475-
if (pfrom && g_tiertwo_sync_state.IsSynced()) mnodeman.AskForMN(pfrom, winner.vinMasternode);
473+
// Only ask for missing items after the initial mnlist sync is complete
474+
if (pfrom && g_tiertwo_sync_state.IsMasternodeListSynced()) mnodeman.AskForMN(pfrom, winner.vinMasternode);
476475
return state.Error("Non-existent mnwinner voter");
477476
}
478477
}

src/masternode-sync.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,6 @@ void CMasternodeSync::Process()
197197
int64_t now = GetTime();
198198
if (lastProcess != 0 && now > lastProcess + 60 * 60) {
199199
Reset();
200-
g_tiertwo_sync_state.SetBlockchainSync(false, 0);
201200
}
202201
lastProcess = now;
203202

0 commit comments

Comments
 (0)