Linux compile fixups and Qt 5.11 fixups

This commit is contained in:
Calin Culianu 2019-12-31 19:29:48 +02:00
parent 5224dbf0f1
commit 4ae2b684ca
3 changed files with 16 additions and 5 deletions

View file

@ -1318,7 +1318,7 @@ auto Controller::debug(const StatsParams &p) const -> Stats // from StatsMixin
m["tx_hash"] = Util::ToHexFast(item.hash);
m["height"] = item.height;
if (item.fee.has_value())
m["fee"] = item.fee.value() / item.fee.value().satoshi();
m["fee"] = qlonglong(item.fee.value() / item.fee.value().satoshi());
l.push_back(m);
}
ret["sh_debug"] = l;
@ -1332,7 +1332,7 @@ auto Controller::debug(const StatsParams &p) const -> Stats // from StatsMixin
m["tx_hash"] = Util::ToHexFast(item.hash);
m["height"] = item.height;
m["tx_pos"] = item.tx_pos;
m["value"] = item.value / item.value.satoshi();
m["value"] = qlonglong(item.value / item.value.satoshi());
l.push_back(m);
}
ret["unspent_debug"] = l;