Commit 2895e3b2 authored by Anton Gavrilov's avatar Anton Gavrilov Committed by Andronik Ordian

Treat only blocks in queue as synced (#11264)

parent f2f4217e
Pipeline #70880 passed with stages
in 34 minutes and 25 seconds
......@@ -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(_) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment