mirror of
https://github.com/janoside/btc-rpc-explorer.git
synced 2026-08-13 12:33:13 +02:00
mempool browse tweaks
This commit is contained in:
parent
d540f080b5
commit
1530b58619
5 changed files with 11 additions and 10 deletions
|
|
@ -22,7 +22,7 @@
|
|||
* UX improvements and polish throughout
|
||||
* URL changes
|
||||
* `/node-status` -> `/node-details`
|
||||
* `/unconfirmed-tx` -> `/mempool-tx`
|
||||
* `/unconfirmed-tx` -> `/mempool-transactions`
|
||||
* Updated dependencies
|
||||
* jQuery: v3.4.1 -> v3.6.0
|
||||
* highlight.js: v9.14.2 -> v10.7.1
|
||||
|
|
@ -192,7 +192,7 @@
|
|||
* Show mempool ancestor/descendant txs on tx detail pages
|
||||
* Blacklist 'createwallet' by default
|
||||
* Show RBF status for unconfirmed txs
|
||||
* Faster, more reliable display of `/mempool-summary` and `/mempool-tx` pages
|
||||
* Faster, more reliable display of `/mempool-summary` and `/mempool-transactions` pages
|
||||
* Fix for persisting arg values in UI on `/rpc-browser`
|
||||
* Misc minor fixes and ux tweaks
|
||||
|
||||
|
|
|
|||
|
|
@ -189,6 +189,7 @@ module.exports = {
|
|||
addressTxPageSize: 10,
|
||||
txMaxInput: (slowDeviceMode ? 3 : 15),
|
||||
browseBlocksPageSize: (process.env.BTCEXP_UI_BLOCKS_PAGE_BLOCK_COUNT || (slowDeviceMode ? 10 : 50)),
|
||||
browseMempoolTransactionsPageSize: (slowDeviceMode ? 10 : 50),
|
||||
addressPage:{
|
||||
txOutputMaxDefaultDisplay:10
|
||||
},
|
||||
|
|
@ -213,7 +214,7 @@ module.exports = {
|
|||
/* 3 */ {name:"Transaction Stats", url:"./tx-stats", desc:"See graphs of total transaction volume and transaction rates.", fontawesome:"fas fa-chart-bar"},
|
||||
|
||||
/* 4 */ {name:"Mempool Summary", url:"./mempool-summary", desc:"Detailed summary of the current mempool for this node.", fontawesome:"fas fa-hourglass-half"},
|
||||
/* 5 */ {name:"Browse Mempool", url:"./mempool-tx", desc:"Browse unconfirmed/pending transactions.", fontawesome:"fas fa-book-open"},
|
||||
/* 5 */ {name:"Browse Mempool", url:"./mempool-transactions", desc:"Browse unconfirmed/pending transactions.", fontawesome:"fas fa-book-open"},
|
||||
|
||||
/* 6 */ {name:"RPC Browser", url:"./rpc-browser", desc:"Browse the RPC functionality of this node. See docs and execute commands.", fontawesome:"fas fa-book"},
|
||||
/* 7 */ {name:"RPC Terminal", url:"./rpc-terminal", desc:"Directly execute RPCs against this node.", fontawesome:"fas fa-terminal"},
|
||||
|
|
|
|||
|
|
@ -3,5 +3,5 @@ Disallow: /address/
|
|||
Disallow: /rpc*
|
||||
Disallow: /tx-stats
|
||||
Disallow: /peers
|
||||
Disallow: /mempool-tx
|
||||
Disallow: /mempool-transactions
|
||||
Disallow: /block-analysis/
|
||||
|
|
@ -1572,9 +1572,9 @@ router.post("/terminal", function(req, res, next) {
|
|||
}
|
||||
});
|
||||
|
||||
router.get("/mempool-tx", asyncHandler(async (req, res, next) => {
|
||||
router.get("/mempool-transactions", asyncHandler(async (req, res, next) => {
|
||||
try {
|
||||
var limit = config.site.browseBlocksPageSize;
|
||||
var limit = config.site.browseMempoolTransactionsPageSize;
|
||||
var offset = 0;
|
||||
var sort = "desc";
|
||||
|
||||
|
|
@ -1593,7 +1593,7 @@ router.get("/mempool-tx", asyncHandler(async (req, res, next) => {
|
|||
res.locals.limit = limit;
|
||||
res.locals.offset = offset;
|
||||
res.locals.sort = sort;
|
||||
res.locals.paginationBaseUrl = "./mempool-tx";
|
||||
res.locals.paginationBaseUrl = "./mempool-transactions";
|
||||
|
||||
const mempoolData = await utils.timePromise("promises.mempool-tx.getMempoolTxids", coreApi.getMempoolTxids(limit, offset));
|
||||
|
||||
|
|
@ -1604,7 +1604,7 @@ router.get("/mempool-tx", asyncHandler(async (req, res, next) => {
|
|||
const promises = [];
|
||||
|
||||
promises.push(new Promise(async (resolve, reject) => {
|
||||
const transactionData = await utils.timePromise("promises.mempool-tx.getRawTransactionsWithInputs", coreApi.getRawTransactionsWithInputs(txids, 5));
|
||||
const transactionData = await utils.timePromise("promises.mempool-tx.getRawTransactionsWithInputs", coreApi.getRawTransactionsWithInputs(txids, config.slowDeviceMode ? 3 : 5));
|
||||
|
||||
res.locals.transactions = transactionData.transactions;
|
||||
res.locals.txInputsByTransaction = transactionData.txInputsByTransaction;
|
||||
|
|
@ -1628,7 +1628,7 @@ router.get("/mempool-tx", asyncHandler(async (req, res, next) => {
|
|||
await Promise.all(promises);
|
||||
|
||||
|
||||
res.render("mempool-tx");
|
||||
res.render("mempool-transactions");
|
||||
|
||||
next();
|
||||
|
||||
|
|
@ -1637,7 +1637,7 @@ router.get("/mempool-tx", asyncHandler(async (req, res, next) => {
|
|||
|
||||
res.locals.userMessage = "Error building page: " + err;
|
||||
|
||||
res.render("mempool-tx");
|
||||
res.render("mempool-transactions");
|
||||
|
||||
next();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue