moneroexamples 2017-08-24 13:29:32 +08:00
parent 3091b880d4
commit 026e734ab0
6 changed files with 16 additions and 10 deletions

View File

@ -431,6 +431,12 @@ main(int ac, const char* av[])
return xmrblocks.mempool(true);
});
// alias to "/mempool"
CROW_ROUTE(app, "/txpool")
([&](const crow::request& req) {
return xmrblocks.mempool(true);
});
// CROW_ROUTE(app, "/altblocks")
// ([&](const crow::request& req) {
// return xmrblocks.altblocks();

View File

@ -2,9 +2,9 @@
<div class="center">
<h3 style="font-size: 12px; margin-top: 20px">
Server time: {{server_timestamp}} | <a href="/mempool">Memory pool</a>
Server time: {{server_timestamp}} | <a href="/txpool">Transaction pool</a>
{{#enable_pusher}}
| <a href="/rawtx">Tx pusher </a>
| <a href="/rawtx">Transaction pusher </a>
{{/enable_pusher}}
{{#enable_key_image_checker}}
| <a href="/rawkeyimgs">Key images checker</a>

View File

@ -1,5 +1,5 @@
<h2 style="margin-bottom: 0px">
Memory pool
Transaction pool
</h2>
<h4 style="font-size: 12px; margin-top: 0px">(no of txs: {{mempool_size}}, size: {{mempool_size_kB}} kB, updated every {{ mempool_refresh_time }} seconds)</h4>
<div class="center">
@ -30,7 +30,7 @@
{{^mempool_fits_on_front_page}}
{{#partial_mempool_shown}}
<div class="center" style="text-align: center; margin-bottom: 10px">
<a href="/mempool">Only {{no_of_mempool_tx_of_frontpage}} txs shown. Click here to see all of them</a>
<a href="/txpool">Only {{no_of_mempool_tx_of_frontpage}} txs shown. Click here to see all of them</a>
</div>
{{/partial_mempool_shown}}

View File

@ -1,15 +1,15 @@
<h2 style="margin-bottom: 0px">
Memory pool
Transaction pool
</h2>
<h4 style="font-size: 14px; margin-top: 0px"></h4>
<div class="center info" style="text-align: center;width:80%;color:#949490">
<p>Mempool data preparation for the front page failed.
<p>Txpool data preparation for the front page failed.
Its processing
{{#network_info}}{{^is_pool_size_zero}}({{tx_pool_size}} txs){{/is_pool_size_zero}}{{/network_info}}
took longer than expected and it timed out.
To view the mempool without time constrain,
go to dedicated mempool page: <a href="/mempool">memory pool</a>
To view the txpool without time constrain,
go to dedicated txpool page: <a href="/txpool">memory pool</a>
</p>

View File

@ -18,7 +18,7 @@
{{^has_error}}
<h4 style="color:green">Success</h4>
<h4>
Your tx should be already in the mempool waiting to be included
Your tx should be already in the txpool waiting to be included
in an upcoming block.
</h4>

View File

@ -7,7 +7,7 @@
<h4>Tx {{tx_hash}} not found. </h4>
<div class="center" style="text-align: center;width:80%">
<p> If this is newly made tx, it can take some time (up to minute)
for it to get propagated to all nodes' mempools.
for it to get propagated to all nodes' txpools.
<br/><br/>
Please refresh in 10-20 seconds to check if its here then.
</p>