Treat only blocks in queue as synced (#11264)
This commit is contained in:
		
							parent
							
								
									f2f4217e3c
								
							
						
					
					
						commit
						2895e3b2ab
					
				@ -571,6 +571,8 @@ impl BlockDownloader {
 | 
			
		||||
				},
 | 
			
		||||
				Err(EthcoreError::Import(ImportError::AlreadyQueued)) => {
 | 
			
		||||
					trace_sync!(self, "Block already queued {:?}", h);
 | 
			
		||||
					// Treat blocks in queue as imported in order not to start retraction too early
 | 
			
		||||
					imported.insert(h.clone());
 | 
			
		||||
					self.block_imported(&h, number, &parent);
 | 
			
		||||
				},
 | 
			
		||||
				Ok(_) => {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user