mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 04:22:55 +01:00
refactor: immediately update lastCleanupTime
This commit is contained in:
parent
d0d2641154
commit
04ba164064
@ -619,6 +619,7 @@ void CChainLocksHandler::Cleanup()
|
|||||||
if (GetTimeMillis() - lastCleanupTime < CLEANUP_INTERVAL) {
|
if (GetTimeMillis() - lastCleanupTime < CLEANUP_INTERVAL) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
lastCleanupTime = GetTimeMillis();
|
||||||
|
|
||||||
{
|
{
|
||||||
LOCK(cs);
|
LOCK(cs);
|
||||||
@ -665,8 +666,6 @@ void CChainLocksHandler::Cleanup()
|
|||||||
++it;
|
++it;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
lastCleanupTime = GetTimeMillis();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool AreChainLocksEnabled(const CSporkManager& sporkman)
|
bool AreChainLocksEnabled(const CSporkManager& sporkman)
|
||||||
|
Loading…
Reference in New Issue
Block a user