Fixed performance issues with --reindex
This commit is contained in:
parent
cf6ecddf21
commit
201b3fb77e
@ -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;
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user