Fixed performance issues with --reindex

This commit is contained in:
Evan Duffield 2015-01-14 07:28:35 -07:00
parent cf6ecddf21
commit 201b3fb77e
2 changed files with 8 additions and 2 deletions

View File

@ -3210,8 +3210,10 @@ bool ProcessBlock(CValidationState &state, CNode* pfrom, CBlock* pblock, CDiskBl
mapOrphanBlocksByPrev.erase(hashPrev);
}
if(!IsInitialBlockDownload()){
darkSendPool.CheckTimeout();
darkSendPool.NewBlock();
}
LogPrintf("ProcessBlock: ACCEPTED\n");
return true;

View File

@ -246,6 +246,8 @@ void OverviewPage::showOutOfSyncWarning(bool fShow)
}
void OverviewPage::updateDarksendProgress(){
if(IsInitialBlockDownload()) return;
int64_t balance = pwalletMain->GetBalance();
if(balance == 0){
ui->darksendProgress->setValue(0);
@ -302,6 +304,8 @@ void OverviewPage::updateDarksendProgress(){
void OverviewPage::darkSendStatus()
{
if(!IsInitialBlockDownload()) return;
int nBestHeight = chainActive.Tip()->nHeight;
if(nBestHeight != darkSendPool.cachedNumBlocks)