Skip to content

Commit 29d53b2

Browse files
committed
eth/fetcher: don't double filter/fetch the same block
1 parent a019191 commit 29d53b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eth/fetcher/fetcher.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ func (f *Fetcher) loop() {
323323
hash := block.Hash()
324324

325325
// Filter explicitly requested blocks from hash announcements
326-
if _, ok := f.fetching[hash]; ok {
326+
if f.fetching[hash] != nil && f.queued[hash] == nil {
327327
// Discard if already imported by other means
328328
if f.getBlock(hash) == nil {
329329
explicit = append(explicit, block)

0 commit comments

Comments
 (0)