Use mempool clear protection feature also when in bitcoind mode.

fixes #335
This commit is contained in:
softsimon 2021-02-14 01:04:44 +07:00
parent 5f6b7d94b1
commit 63b52b9d9b
No known key found for this signature in database
GPG Key ID: 488D7DCFB5A430D7

View File

@ -134,7 +134,6 @@ class Mempool {
// Prevent mempool from clear on bitcoind restart by delaying the deletion
if (this.mempoolProtection === 0
&& config.MEMPOOL.BACKEND === 'esplora'
&& currentMempoolSize > 20000
&& transactions.length / currentMempoolSize <= 0.80
) {