Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
Treat only blocks in queue as synced (#11264)
Browse files Browse the repository at this point in the history
  • Loading branch information
grbIzl authored and ordian committed Dec 3, 2019
1 parent f2f4217 commit 2895e3b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ethcore/sync/src/block_sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(_) => {
Expand Down

0 comments on commit 2895e3b

Please sign in to comment.