mirror of
https://git.wownero.com/wownero/onion-wownero-blockchain-explorer.git
synced 2024-08-15 00:33:12 +00:00
fix: wrong difficult on the front page
https://github.com/moneroexamples/onion-monero-blockchain-explorer/issues/195
This commit is contained in:
parent
afca5e9dd6
commit
21ce4b12d8
1 changed files with 7 additions and 2 deletions
|
@ -757,9 +757,14 @@ index2(uint64_t page_no = 0, bool refresh_page = false)
|
||||||
|
|
||||||
// perapre network info mstch::map for the front page
|
// perapre network info mstch::map for the front page
|
||||||
string hash_rate;
|
string hash_rate;
|
||||||
|
|
||||||
double hr_d;
|
double hr_d;
|
||||||
char metric_prefix;
|
char metric_prefix;
|
||||||
cryptonote::difficulty_type hr = make_difficulty(current_network_info.hash_rate, current_network_info.hash_rate_top64);
|
|
||||||
|
cryptonote::difficulty_type hr = make_difficulty(
|
||||||
|
current_network_info.hash_rate,
|
||||||
|
current_network_info.hash_rate_top64);
|
||||||
|
|
||||||
get_metric_prefix(hr, hr_d, metric_prefix);
|
get_metric_prefix(hr, hr_d, metric_prefix);
|
||||||
|
|
||||||
if (metric_prefix != 0)
|
if (metric_prefix != 0)
|
||||||
|
@ -778,7 +783,7 @@ index2(uint64_t page_no = 0, bool refresh_page = false)
|
||||||
}
|
}
|
||||||
|
|
||||||
context["network_info"] = mstch::map {
|
context["network_info"] = mstch::map {
|
||||||
{"difficulty" , make_difficulty(current_network_info.difficulty, current_network_info.difficulty_top64).str()},
|
{"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)},
|
||||||
{"alt_blocks_no" , current_network_info.alt_blocks_count},
|
{"alt_blocks_no" , current_network_info.alt_blocks_count},
|
||||||
|
|
Loading…
Reference in a new issue