From 59713e21322dd97d548fcf6a26ecb709aa4e1085 Mon Sep 17 00:00:00 2001 From: softsimon Date: Sun, 2 Jul 2023 18:10:08 +0200 Subject: [PATCH] Update backend/src/api/mempool.ts Co-authored-by: mononaut <83316221+mononaut@users.noreply.github.com> --- backend/src/api/mempool.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/backend/src/api/mempool.ts b/backend/src/api/mempool.ts index 1a6bce853..4d47fa0c1 100644 --- a/backend/src/api/mempool.ts +++ b/backend/src/api/mempool.ts @@ -180,9 +180,7 @@ class Mempool { } } - if (new Date().getTime() - start > 5_000) { - const progress = (currentMempoolSize + newTransactions.length) / transactions.length * 100; - logger.debug(`Mempool is synchronizing. Processed ${newTransactions.length}/${diff} txs (${Math.round(progress)}%)`); + if (Date.now() - intervalTimer > 5_000) { if (this.inSync) { // Break and restart mempool loop if we spend too much time processing