add taddr supply,zaddr supply and total supply

This commit is contained in:
Denio
2019-12-05 23:20:25 +01:00
parent f6bbfc0ed8
commit 47292f768d
4 changed files with 292 additions and 201 deletions

View File

@@ -254,6 +254,16 @@ void Controller::getInfoThenRefresh(bool force) {
model->setEncryptionStatus(isEncrypted, isLocked);
});
zrpc->fetchSupply([=] (const json& reply) {
int supply = reply["supply"].get<json::number_integer_t>();
ui->supply_taddr->setText(QString::number(supply));
int zfunds = reply["zfunds"].get<json::number_integer_t>();
ui->supply_zaddr->setText(QString::number(zfunds));
int total = reply["total"].get<json::number_integer_t>();
ui->supply_total->setText(QString::number(total));
});
if ( doUpdate ) {
// Something changed, so refresh everything.
refreshBalances();