moneroexamples 7 years ago
parent 3091b880d4
commit 026e734ab0

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

@ -2,9 +2,9 @@
<div class="center"> <div class="center">
<h3 style="font-size: 12px; margin-top: 20px"> <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}} {{#enable_pusher}}
| <a href="/rawtx">Tx pusher </a> | <a href="/rawtx">Transaction pusher </a>
{{/enable_pusher}} {{/enable_pusher}}
{{#enable_key_image_checker}} {{#enable_key_image_checker}}
| <a href="/rawkeyimgs">Key images checker</a> | <a href="/rawkeyimgs">Key images checker</a>

@ -1,5 +1,5 @@
<h2 style="margin-bottom: 0px"> <h2 style="margin-bottom: 0px">
Memory pool Transaction pool
</h2> </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> <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"> <div class="center">
@ -30,7 +30,7 @@
{{^mempool_fits_on_front_page}} {{^mempool_fits_on_front_page}}
{{#partial_mempool_shown}} {{#partial_mempool_shown}}
<div class="center" style="text-align: center; margin-bottom: 10px"> <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> </div>
{{/partial_mempool_shown}} {{/partial_mempool_shown}}

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

@ -18,7 +18,7 @@
{{^has_error}} {{^has_error}}
<h4 style="color:green">Success</h4> <h4 style="color:green">Success</h4>
<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. in an upcoming block.
</h4> </h4>

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

Loading…
Cancel
Save