mirror of
https://git.wownero.com/wownero/onion-wownero-blockchain-explorer.git
synced 2024-08-15 00:33:12 +00:00
fix: network info dissapread
This commit is contained in:
parent
1fe5a2185f
commit
2647ae3d1c
1 changed files with 2 additions and 5 deletions
|
@ -379,10 +379,7 @@ namespace xmreg
|
||||||
{
|
{
|
||||||
json j_info;
|
json j_info;
|
||||||
|
|
||||||
if (!get_monero_network_info(j_info))
|
get_monero_network_info(j_info);
|
||||||
{
|
|
||||||
return json{};
|
|
||||||
}
|
|
||||||
|
|
||||||
return j_info;
|
return j_info;
|
||||||
});
|
});
|
||||||
|
@ -736,7 +733,7 @@ namespace xmreg
|
||||||
static_cast<double>(
|
static_cast<double>(
|
||||||
current_network_info.block_size_limit / 2)/1024.0);
|
current_network_info.block_size_limit / 2)/1024.0);
|
||||||
|
|
||||||
context["network_inf o"] = mstch::map {
|
context["network_info"] = mstch::map {
|
||||||
{"difficulty" , current_network_info.difficulty},
|
{"difficulty" , current_network_info.difficulty},
|
||||||
{"hash_rate" , hash_rate},
|
{"hash_rate" , hash_rate},
|
||||||
{"fee_per_kb" , print_money(current_network_info.fee_per_kb)},
|
{"fee_per_kb" , print_money(current_network_info.fee_per_kb)},
|
||||||
|
|
Loading…
Reference in a new issue