Use mempool clear protection feature also when in bitcoind mode.
fixes #335
This commit is contained in:
		
							parent
							
								
									581641ab04
								
							
						
					
					
						commit
						cf4406a37c
					
				@ -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
 | 
			
		||||
    ) {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user