diff --git a/backend/src/api/mempool.ts b/backend/src/api/mempool.ts index 3356df7c9..2a509aa3f 100644 --- a/backend/src/api/mempool.ts +++ b/backend/src/api/mempool.ts @@ -130,7 +130,10 @@ class Mempool { } // Prevent mempool from clear on bitcoind restart by delaying the deletion - if (config.MEMPOOL.NETWORK === 'mainnet' && this.mempoolProtection === 0 && transactions.length / currentMempoolSize <= 0.80) { + if (this.mempoolProtection === 0 + && currentMempoolSize > 20000 + && transactions.length / currentMempoolSize <= 0.80 + ) { this.mempoolProtection = 1; this.inSync = false; logger.warn(`Mempool clear protection triggered because transactions.length: ${transactions.length} and currentMempoolSize: ${currentMempoolSize}.`);