Browse Source

debugging

pull/45/head
Jonathan "Duke" Leto 5 years ago
parent
commit
5e6d73f423
  1. 2
      src/rpc.cpp

2
src/rpc.cpp

@ -1063,6 +1063,7 @@ void RPC::refreshZECPrice() {
return;
}
qDebug() << "No network errors\n";
auto all = reply->readAll();
auto parsed = json::parse(all, nullptr, false);
if (parsed.is_discarded()) {
@ -1072,6 +1073,7 @@ void RPC::refreshZECPrice() {
const json& item = parsed.get<json::object_t>();
if (item["hush"]) {
qDebug() << "Found hush key in price json\n";
// TODO: support BTC/EUR prices as well
QString price = QString::fromStdString(item["hush"]["usd"].get<json::string_t>());
qDebug() << "HUSH = $" << price;

Loading…
Cancel
Save