git://git.novaco.in
/
novacoin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
1c5412b
)
add PoS and PoW difficulty to tooltip
226/head
author
fsb4000
<fsb4000@yandex.ru>
Thu, 20 Aug 2015 10:17:23 +0000 (16:17 +0600)
committer
fsb4000
<fsb4000@yandex.ru>
Thu, 20 Aug 2015 10:17:23 +0000 (16:17 +0600)
src/qt/bitcoingui.cpp
patch
|
blob
|
history
diff --git
a/src/qt/bitcoingui.cpp
b/src/qt/bitcoingui.cpp
index
d256bcc
..
99e1813
100644
(file)
--- a/
src/qt/bitcoingui.cpp
+++ b/
src/qt/bitcoingui.cpp
@@
-622,6
+622,9
@@
void BitcoinGUI::setNumBlocks(int count, int nTotalBlocks)
progressBar->setVisible(false);
}
+ tooltip = tr("Current PoW difficulty is %1.").arg(clientModel->getDifficulty(false)) + QString("<br>") + tooltip;
+ tooltip = tr("Current PoS difficulty is %1.").arg(clientModel->getDifficulty(true)) + QString("<br>") + tooltip;
+
QDateTime lastBlockDate = clientModel->getLastBlockDate();
int secs = lastBlockDate.secsTo(QDateTime::currentDateTime());
QString text;