Save cache to disk every 6 blocks
This commit is contained in:
		
							parent
							
								
									7e676dbaf0
								
							
						
					
					
						commit
						8bd05987e5
					
				@ -641,7 +641,7 @@ class Blocks {
 | 
			
		||||
      if (this.newBlockCallbacks.length) {
 | 
			
		||||
        this.newBlockCallbacks.forEach((cb) => cb(blockExtended, txIds, transactions));
 | 
			
		||||
      }
 | 
			
		||||
      if (!memPool.hasPriority()) {
 | 
			
		||||
      if (!memPool.hasPriority() && (block.height % 6 === 0)) {
 | 
			
		||||
        diskCache.$saveCacheToDisk();
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user