mirror of
https://git.wownero.com/wownero/onion-wownero-blockchain-explorer.git
synced 2024-08-15 00:33:12 +00:00
Reding no of tx on index page from 50 to 25.
This commit is contained in:
parent
968de0ae09
commit
f4d8de397c
2 changed files with 7 additions and 3 deletions
|
@ -475,7 +475,7 @@ namespace xmreg {
|
|||
server_timestamp = std::time(nullptr);
|
||||
|
||||
// number of last blocks to show
|
||||
uint64_t no_of_last_blocks {50 + 1};
|
||||
uint64_t no_of_last_blocks {25 + 1};
|
||||
|
||||
// get the current blockchain height. Just to check
|
||||
uint64_t height =
|
||||
|
@ -724,10 +724,14 @@ namespace xmreg {
|
|||
|
||||
//cout << "_blk_height: " << _blk_height << endl;
|
||||
|
||||
if (_blk_height > core_storage->get_current_blockchain_height())
|
||||
uint64_t current_blockchain_height
|
||||
= core_storage->get_current_blockchain_height();
|
||||
|
||||
if (_blk_height > current_blockchain_height)
|
||||
{
|
||||
cerr << "Cant get block: " << _blk_height
|
||||
<< " since its higher than current blockchain height"
|
||||
<< "i.e., " << current_blockchain_height
|
||||
<< endl;
|
||||
return fmt::format("Cant get block {:d} since its higher than current blockchain height!",
|
||||
_blk_height);
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
{{{mempool_info}}}
|
||||
|
||||
{{#is_page_zero}}
|
||||
<h2>Transactions in the last 50 blocks</h2>
|
||||
<h2>Transactions in the last 25 blocks</h2>
|
||||
{{/is_page_zero}}
|
||||
{{^is_page_zero}}
|
||||
<h2>Transactions in older blocks<!--(height: {{height}})--></h2>
|
||||
|
|
Loading…
Reference in a new issue