add PoS and PoW difficulty to tooltip 226/head
authorfsb4000 <fsb4000@yandex.ru>
Thu, 20 Aug 2015 10:17:23 +0000 (16:17 +0600)
committerfsb4000 <fsb4000@yandex.ru>
Thu, 20 Aug 2015 10:17:23 +0000 (16:17 +0600)
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;