diff options
author | Péter Szilágyi <peterke@gmail.com> | 2015-10-02 18:20:41 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2015-10-02 18:20:41 +0800 |
commit | 47f62a67aa8a033d8a81dc16104018369325897d (patch) | |
tree | 102f70b5ba42e6de4faa9866b7e329c44cf525a9 /eth/downloader/downloader.go | |
parent | 49ae53850622f3ea051184dccc867fbfec4c9ecb (diff) | |
download | dexon-47f62a67aa8a033d8a81dc16104018369325897d.tar dexon-47f62a67aa8a033d8a81dc16104018369325897d.tar.gz dexon-47f62a67aa8a033d8a81dc16104018369325897d.tar.bz2 dexon-47f62a67aa8a033d8a81dc16104018369325897d.tar.lz dexon-47f62a67aa8a033d8a81dc16104018369325897d.tar.xz dexon-47f62a67aa8a033d8a81dc16104018369325897d.tar.zst dexon-47f62a67aa8a033d8a81dc16104018369325897d.zip |
eth/downloader: match capabilities when querying idle peers
Diffstat (limited to 'eth/downloader/downloader.go')
-rw-r--r-- | eth/downloader/downloader.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/eth/downloader/downloader.go b/eth/downloader/downloader.go index d1a716c5f..64fb1b57b 100644 --- a/eth/downloader/downloader.go +++ b/eth/downloader/downloader.go @@ -816,7 +816,7 @@ func (d *Downloader) fetchBlocks61(from uint64) error { } // Send a download request to all idle peers, until throttled throttled := false - for _, peer := range d.peers.IdlePeers() { + for _, peer := range d.peers.IdlePeers(eth61) { // Short circuit if throttling activated if d.queue.Throttle() { throttled = true @@ -1255,7 +1255,7 @@ func (d *Downloader) fetchBodies(from uint64) error { } // Send a download request to all idle peers, until throttled queuedEmptyBlocks, throttled := false, false - for _, peer := range d.peers.IdlePeers() { + for _, peer := range d.peers.IdlePeers(eth62) { // Short circuit if throttling activated if d.queue.Throttle() { throttled = true |