fix mempool sync skeleton loaders on Core backend
This commit is contained in:
parent
2d463326e0
commit
36fe5627c7
@ -128,7 +128,7 @@ class Mempool {
|
|||||||
} else {
|
} else {
|
||||||
done = true;
|
done = true;
|
||||||
}
|
}
|
||||||
if (Math.floor(count / expectedCount) < 1) {
|
if (Math.floor((count / expectedCount) * 100) < 100) {
|
||||||
loadingIndicators.setProgress('mempool', count / expectedCount * 100);
|
loadingIndicators.setProgress('mempool', count / expectedCount * 100);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@ -247,7 +247,9 @@ class Mempool {
|
|||||||
} else {
|
} else {
|
||||||
const progress = (currentMempoolSize + newTransactions.length) / transactions.length * 100;
|
const progress = (currentMempoolSize + newTransactions.length) / transactions.length * 100;
|
||||||
logger.debug(`Mempool is synchronizing. Processed ${newTransactions.length}/${diff} txs (${Math.round(progress)}%)`);
|
logger.debug(`Mempool is synchronizing. Processed ${newTransactions.length}/${diff} txs (${Math.round(progress)}%)`);
|
||||||
|
if (Math.floor(progress) < 100) {
|
||||||
loadingIndicators.setProgress('mempool', progress);
|
loadingIndicators.setProgress('mempool', progress);
|
||||||
|
}
|
||||||
intervalTimer = Date.now()
|
intervalTimer = Date.now()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user