diff options
| author | Jonas Schnelli <[email protected]> | 2016-10-20 18:56:03 +0200 |
|---|---|---|
| committer | Jonas Schnelli <[email protected]> | 2016-10-20 19:02:59 +0200 |
| commit | 3154d6e3a207812578cb37a505f140b46b17c945 (patch) | |
| tree | 97f551eeb3e5621d3b403632c7ca231b357546a0 /src/qt/bitcoingui.cpp | |
| parent | Use pindexBestHeader instead of setBlockIndexCandidates for NotifyHeaderTip() (diff) | |
| download | discoin-3154d6e3a207812578cb37a505f140b46b17c945.tar.xz discoin-3154d6e3a207812578cb37a505f140b46b17c945.zip | |
[Qt] use NotifyHeaderTip's height and date for the progress update
Diffstat (limited to 'src/qt/bitcoingui.cpp')
| -rw-r--r-- | src/qt/bitcoingui.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/qt/bitcoingui.cpp b/src/qt/bitcoingui.cpp index af767aa6c..ee5102c4f 100644 --- a/src/qt/bitcoingui.cpp +++ b/src/qt/bitcoingui.cpp @@ -717,13 +717,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; |