diff --git a/eth/downloader/downloader.go b/eth/downloader/downloader.go index 91cc65249e..4e795af6d3 100644 --- a/eth/downloader/downloader.go +++ b/eth/downloader/downloader.go @@ -311,7 +311,7 @@ out: // 2) Measure their speed; // 3) Amount and availability. d.queue.deliver(pid, nil) - if peer := p.peers[pid]; peer != nil { + if peer := d.peers[pid]; peer != nil { peer.demote() } }