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

pull/1353/head
Péter Szilágyi 9 years ago
parent a0191910fc
commit 29d53b2073
  1. 2
      eth/fetcher/fetcher.go

@ -323,7 +323,7 @@ func (f *Fetcher) loop() {
hash := block.Hash()
// 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
if f.getBlock(hash) == nil {
explicit = append(explicit, block)

Loading…
Cancel
Save