[Qt] use NotifyHeaderTip's height and date for the progress update
This commit is contained in:
committed by
lateminer
parent
f1d191a658
commit
0b7dd2fdfc
@@ -764,13 +764,10 @@ void BitcoinGUI::setNumBlocks(int count, const QDateTime& blockDate, double nVer
|
||||
{
|
||||
if (modalOverlay)
|
||||
{
|
||||
if (header) {
|
||||
/* use clientmodels getHeaderTipHeight and getHeaderTipTime because the NotifyHeaderTip signal does not fire when updating the best header */
|
||||
modalOverlay->setKnownBestHeight(clientModel->getHeaderTipHeight(), QDateTime::fromTime_t(clientModel->getHeaderTipTime()));
|
||||
}
|
||||
else {
|
||||
if (header)
|
||||
modalOverlay->setKnownBestHeight(count, blockDate);
|
||||
else
|
||||
modalOverlay->tipUpdate(count, blockDate, nVerificationProgress);
|
||||
}
|
||||
}
|
||||
if (!clientModel)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user