|
|
@ -585,6 +585,7 @@ void RPC::getInfoThenRefresh(bool force) { |
|
|
|
|
|
|
|
static int lastBlock = 0; |
|
|
|
int curBlock = reply["blocks"].get<json::number_integer_t>(); |
|
|
|
int longestchain = reply["longestchain"].get<json::number_integer_t>(); |
|
|
|
int version = reply["version"].get<json::number_integer_t>(); |
|
|
|
int p2pport = reply["p2pport"].get<json::number_integer_t>(); |
|
|
|
int rpcport = reply["rpcport"].get<json::number_integer_t>(); |
|
|
@ -600,6 +601,7 @@ void RPC::getInfoThenRefresh(bool force) { |
|
|
|
|
|
|
|
Settings::getInstance()->setZcashdVersion(version); |
|
|
|
|
|
|
|
ui->longestchain->setText(QString::number(longestchain)); |
|
|
|
ui->notarizedhashvalue->setText( ntzhash ); |
|
|
|
ui->notarizedtxidvalue->setText( ntztxid ); |
|
|
|
ui->lagvalue->setText( QString::number(lag) ); |
|
|
@ -654,8 +656,10 @@ void RPC::getInfoThenRefresh(bool force) { |
|
|
|
|
|
|
|
conn->doRPCIgnoreError(payload, [=](const json& reply) { |
|
|
|
QString clientname = QString::fromStdString( reply["subversion"].get<json::string_t>() ); |
|
|
|
QString localservices = QString::fromStdString( reply["localservices"].get<json::string_t>() ); |
|
|
|
|
|
|
|
ui->clientname->setText(clientname); |
|
|
|
ui->localservices->setText(localservices); |
|
|
|
}); |
|
|
|
|
|
|
|
// Call to see if the blockchain is syncing.
|
|
|
|