Merge pull request #226 from fsb4000/master
authorCryptoManiac <CryptoManiac@users.noreply.github.com>
Thu, 20 Aug 2015 10:42:03 +0000 (13:42 +0300)
committerCryptoManiac <CryptoManiac@users.noreply.github.com>
Thu, 20 Aug 2015 10:42:03 +0000 (13:42 +0300)
add PoS and PoW difficulty to tooltip

src/qt/bitcoingui.cpp

index d256bcc..99e1813 100644 (file)
@@ -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;