Commit 29d53b20 authored by Péter Szilágyi's avatar Péter Szilágyi

eth/fetcher: don't double filter/fetch the same block

parent a0191910
...@@ -323,7 +323,7 @@ func (f *Fetcher) loop() { ...@@ -323,7 +323,7 @@ func (f *Fetcher) loop() {
hash := block.Hash() hash := block.Hash()
// Filter explicitly requested blocks from hash announcements // Filter explicitly requested blocks from hash announcements
if _, ok := f.fetching[hash]; ok { if f.fetching[hash] != nil && f.queued[hash] == nil {
// Discard if already imported by other means // Discard if already imported by other means
if f.getBlock(hash) == nil { if f.getBlock(hash) == nil {
explicit = append(explicit, block) explicit = append(explicit, block)
......
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