replaced IsInitialBlockDownload with more basic/faster check

This commit is contained in:
Evan Duffield 2015-01-20 03:39:04 -07:00
parent 47bb25d853
commit 3322b029ec

View File

@ -3211,7 +3211,7 @@ bool ProcessBlock(CValidationState &state, CNode* pfrom, CBlock* pblock, CDiskBl
} }
if(!fLiteMode){ if(!fLiteMode){
if(!IsInitialBlockDownload()){ if (!fImporting && !fReindex && chainActive.Height() > Checkpoints::GetTotalBlocksEstimate()){
darkSendPool.CheckTimeout(); darkSendPool.CheckTimeout();
darkSendPool.NewBlock(); darkSendPool.NewBlock();
} }