Treat only blocks in queue as synced (#11264)

This commit is contained in:
Anton Gavrilov 2019-12-03 15:59:15 +01:00 committed by Andronik Ordian
parent f2f4217e3c
commit 2895e3b2ab
1 changed files with 2 additions and 0 deletions

View File

@ -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(_) => {