Fix sync reset on lack of activity (#1686)

This commit is contained in:
UdjinM6 2017-10-17 19:41:08 +03:00 committed by GitHub
parent 32ad53e77d
commit 28c8d17292

View File

@ -160,6 +160,7 @@ void CMasternodeSync::ProcessTick(CConnman& connman)
LogPrintf("CMasternodeSync::HasSyncFailures -- WARNING: no actions for too long, restarting sync...\n");
Reset();
SwitchToNextAsset(connman);
nTimeLastProcess = GetTime();
return;
}
nTimeLastProcess = GetTime();