diff --git a/backend/src/api/mempool.ts b/backend/src/api/mempool.ts index 39d23b352..721ec4e2b 100644 --- a/backend/src/api/mempool.ts +++ b/backend/src/api/mempool.ts @@ -10,6 +10,7 @@ import loadingIndicators from './loading-indicators'; class Mempool { private static WEBSOCKET_REFRESH_RATE_MS = 10000; + private static CLEAR_PROTECTION_MINUTES = 10; private inSync: boolean = false; private mempoolCache: { [txId: string]: TransactionExtended } = {}; private mempoolInfo: IBitcoinApi.MempoolInfo = { loaded: false, size: 0, bytes: 0, usage: 0, @@ -143,7 +144,7 @@ class Mempool { setTimeout(() => { this.mempoolProtection = 2; logger.warn('Mempool clear protection resumed.'); - }, 1000 * 60 * 2); + }, 1000 * 60 * Mempool.CLEAR_PROTECTION_MINUTES); } let newMempool = {};