Revert "Merge pull request #1240 from nymkappa/feature/mempool-sync-threshold"

This reverts commit 2f921f4cc7, reversing
changes made to 877be47e5b.
This commit is contained in:
nymkappa committed 2022-02-14 17:57:03 +09:00
1 parent 820daf377e
commit 87170247bd
1 file changed
+1 -2
+1 -2
View File
@@ -168,8 +168,7 @@ class Mempool {
const newTransactionsStripped = newTransactions.map((tx) => Common.stripTransaction(tx));
this.latestTransactions = newTransactionsStripped.concat(this.latestTransactions).slice(0, 6);
const syncedThreshold = 0.99; // If we synced 99% of the mempool tx count, consider we're synced
if (!this.inSync && Object.keys(this.mempoolCache).length >= transactions.length * syncedThreshold) {
if (!this.inSync && transactions.length === Object.keys(this.mempoolCache).length) {
this.inSync = true;
logger.notice('The mempool is now in sync!');
loadingIndicators.setProgress('mempool', 100);