mirror of
				https://github.com/0glabs/0g-storage-node.git
				synced 2025-11-03 16:17:27 +00:00 
			
		
		
		
	
							parent
							
								
									4eb2a50b0e
								
							
						
					
					
						commit
						2f3361fafc
					
				@ -80,6 +80,14 @@ impl FlowStore {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    pub fn delete_batch_list(&self, batch_list: &[u64]) -> Result<()> {
 | 
					    pub fn delete_batch_list(&self, batch_list: &[u64]) -> Result<()> {
 | 
				
			||||||
 | 
					        let mut to_seal_set = self.to_seal_set.write();
 | 
				
			||||||
 | 
					        for batch_index in batch_list {
 | 
				
			||||||
 | 
					            for seal_index in (*batch_index as usize) * SEALS_PER_LOAD
 | 
				
			||||||
 | 
					                ..(*batch_index as usize + 1) * SEALS_PER_LOAD
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                to_seal_set.remove(&seal_index);
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
        self.db.delete_batch_list(batch_list)
 | 
					        self.db.delete_batch_list(batch_list)
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user