Don't prune ancient state when instantiating a Client (#11270)
This commit is contained in:
		
							parent
							
								
									1986c4ee79
								
							
						
					
					
						commit
						6e34ee6837
					
				@ -800,13 +800,6 @@ impl Client {
 | 
			
		||||
			config,
 | 
			
		||||
		});
 | 
			
		||||
 | 
			
		||||
		// prune old states.
 | 
			
		||||
		{
 | 
			
		||||
			let state_db = client.state_db.read().boxed_clone();
 | 
			
		||||
			let chain = client.chain.read();
 | 
			
		||||
			client.prune_ancient(state_db, &chain)?;
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		// ensure genesis epoch proof in the DB.
 | 
			
		||||
		{
 | 
			
		||||
			let chain = client.chain.read();
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user