mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-01 19:35:52 +02:00
Merge #7917: Optimize reindex
b4d24e1Report reindexing progress in GUI (Pieter Wuille)d3d7547Add -reindex-chainstate that does not rebuild block index (Pieter Wuille)fb8fad1Optimize ActivateBestChain for long chains (Pieter Wuille)316623fSwitch reindexing to AcceptBlock in-loop and ActivateBestChain afterwards (Pieter Wuille)d253ec4Make ProcessNewBlock dbp const and update comment (Pieter Wuille)
This commit is contained in:
@@ -353,8 +353,8 @@ void RPCConsole::setClientModel(ClientModel *model)
|
||||
setNumConnections(model->getNumConnections());
|
||||
connect(model, SIGNAL(numConnectionsChanged(int)), this, SLOT(setNumConnections(int)));
|
||||
|
||||
setNumBlocks(model->getNumBlocks(), model->getLastBlockDate(), model->getVerificationProgress(NULL));
|
||||
connect(model, SIGNAL(numBlocksChanged(int,QDateTime,double)), this, SLOT(setNumBlocks(int,QDateTime,double)));
|
||||
setNumBlocks(model->getNumBlocks(), model->getLastBlockDate(), model->getVerificationProgress(NULL), false);
|
||||
connect(model, SIGNAL(numBlocksChanged(int,QDateTime,double,bool)), this, SLOT(setNumBlocks(int,QDateTime,double,bool)));
|
||||
|
||||
updateTrafficStats(model->getTotalBytesRecv(), model->getTotalBytesSent());
|
||||
connect(model, SIGNAL(bytesChanged(quint64,quint64)), this, SLOT(updateTrafficStats(quint64, quint64)));
|
||||
@@ -585,10 +585,12 @@ void RPCConsole::setNumConnections(int count)
|
||||
ui->numberOfConnections->setText(connections);
|
||||
}
|
||||
|
||||
void RPCConsole::setNumBlocks(int count, const QDateTime& blockDate, double nVerificationProgress)
|
||||
void RPCConsole::setNumBlocks(int count, const QDateTime& blockDate, double nVerificationProgress, bool headers)
|
||||
{
|
||||
ui->numberOfBlocks->setText(QString::number(count));
|
||||
ui->lastBlockTime->setText(blockDate.toString());
|
||||
if (!headers) {
|
||||
ui->numberOfBlocks->setText(QString::number(count));
|
||||
ui->lastBlockTime->setText(blockDate.toString());
|
||||
}
|
||||
}
|
||||
|
||||
void RPCConsole::setMempoolSize(long numberOfTxs, size_t dynUsage)
|
||||
|
||||
Reference in New Issue
Block a user