mirror of
https://github.com/mempool/mempool.git
synced 2025-02-23 22:46:54 +01:00
parent
45efb604c1
commit
cbef2ae6d0
1 changed files with 4 additions and 1 deletions
|
@ -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}.`);
|
||||
|
|
Loading…
Add table
Reference in a new issue