prevent running DoAutomaticDenominating while IsInitialBlockDownload

This commit is contained in:
UdjinM6 2015-01-30 01:19:41 +03:00
parent 7fafe5d3e1
commit 1ecbfd09d7

View File

@ -1416,6 +1416,8 @@ bool CDarkSendPool::DoAutomaticDenominating(bool fDryRun, bool ready)
{ {
LOCK(cs_darksend); LOCK(cs_darksend);
if(IsInitialBlockDownload()) return false;
if(fMasterNode) return false; if(fMasterNode) return false;
if(state == POOL_STATUS_ERROR || state == POOL_STATUS_SUCCESS) return false; if(state == POOL_STATUS_ERROR || state == POOL_STATUS_SUCCESS) return false;