diff --git a/src/about.ui b/src/about.ui index 815abf0..48412aa 100644 --- a/src/about.ui +++ b/src/about.ui @@ -52,7 +52,7 @@ <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Ubuntu'; font-size:11pt; font-weight:400; font-style:normal;"> -<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Ubuntu';">Copyright (c) 2019-2020 DenioD (MIT License)</span></p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Ubuntu';">Copyright (c) 2019-2020 The Hush developers (MIT License)</span></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Ubuntu';">Copyright (c) 2018-2019 Aditya Kulkarni (MIT License)</span></p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Ubuntu';"><br /></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Ubuntu';">Special thanks to:</span></p> diff --git a/src/controller.cpp b/src/controller.cpp index 2b6cd4d..367f701 100644 --- a/src/controller.cpp +++ b/src/controller.cpp @@ -158,13 +158,15 @@ void Controller::getInfoThenRefresh(bool force) { static bool prevCallSucceeded = false; - zrpc->fetchLatestBlock([=] (const json& reply) { + zrpc->fetchInfo([=] (const json& reply) { prevCallSucceeded = true; - int curBlock = reply["height"].get(); + int curBlock = reply["latest_block_height"].get(); bool doUpdate = force || (model->getLatestBlock() != curBlock); model->setLatestBlock(curBlock); ui->blockHeight->setText(QString::number(curBlock)); + ui->Version->setText(QString::fromStdString(reply["version"].get())); + ui->Vendor->setText(QString::fromStdString(reply["vendor"].get())); main->logger->write(QString("Refresh. curblock ") % QString::number(curBlock) % ", update=" % (doUpdate ? "true" : "false") );