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);
|
mapOrphanBlocksByPrev.erase(hashPrev);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(!IsInitialBlockDownload()){
|
||||||
darkSendPool.CheckTimeout();
|
darkSendPool.CheckTimeout();
|
||||||
darkSendPool.NewBlock();
|
darkSendPool.NewBlock();
|
||||||
|
}
|
||||||
|
|
||||||
LogPrintf("ProcessBlock: ACCEPTED\n");
|
LogPrintf("ProcessBlock: ACCEPTED\n");
|
||||||
return true;
|
return true;
|
||||||
|
@ -246,6 +246,8 @@ void OverviewPage::showOutOfSyncWarning(bool fShow)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void OverviewPage::updateDarksendProgress(){
|
void OverviewPage::updateDarksendProgress(){
|
||||||
|
if(IsInitialBlockDownload()) return;
|
||||||
|
|
||||||
int64_t balance = pwalletMain->GetBalance();
|
int64_t balance = pwalletMain->GetBalance();
|
||||||
if(balance == 0){
|
if(balance == 0){
|
||||||
ui->darksendProgress->setValue(0);
|
ui->darksendProgress->setValue(0);
|
||||||
@ -302,6 +304,8 @@ void OverviewPage::updateDarksendProgress(){
|
|||||||
|
|
||||||
void OverviewPage::darkSendStatus()
|
void OverviewPage::darkSendStatus()
|
||||||
{
|
{
|
||||||
|
if(!IsInitialBlockDownload()) return;
|
||||||
|
|
||||||
int nBestHeight = chainActive.Tip()->nHeight;
|
int nBestHeight = chainActive.Tip()->nHeight;
|
||||||
|
|
||||||
if(nBestHeight != darkSendPool.cachedNumBlocks)
|
if(nBestHeight != darkSendPool.cachedNumBlocks)
|
||||||
|
Loading…
Reference in New Issue
Block a user