mirror of
https://github.com/mempool/mempool.git
synced 2025-02-23 22:46:54 +01:00
Progressbar calculation fix
This commit is contained in:
parent
dabfa05337
commit
521418bd25
1 changed files with 1 additions and 1 deletions
|
@ -780,7 +780,7 @@ class Routes {
|
|||
try {
|
||||
const transaction = await transactionUtils.$getTransactionExtended(txIds[i], true, true);
|
||||
transactions.push(transaction);
|
||||
loadingIndicators.setProgress('blocktxs-' + req.params.hash, (i + 1) / endIndex * 100);
|
||||
loadingIndicators.setProgress('blocktxs-' + req.params.hash, (i - startingIndex + 1) / (endIndex - startingIndex) * 100);
|
||||
} catch (e) {
|
||||
logger.debug('getBlockTransactions error: ' + (e instanceof Error ? e.message : e));
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue