From 26e72b2ccd728b00e08bd692bdd7241ff0bfe2cc Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Fri, 26 Feb 2016 15:24:51 +0100 Subject: eth/downloader: fix header download limiting Fixes #2201 --- eth/downloader/downloader.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eth/downloader/downloader.go b/eth/downloader/downloader.go index de54bd859..017d25704 100644 --- a/eth/downloader/downloader.go +++ b/eth/downloader/downloader.go @@ -1249,7 +1249,7 @@ func (d *Downloader) fetchHeaders(p *peer, td *big.Int, from uint64) error { } } // Notify the content fetchers of new headers, but stop if queue is full - cont := d.queue.PendingBlocks() < maxQueuedHeaders || d.queue.PendingReceipts() < maxQueuedHeaders + cont := d.queue.PendingBlocks() < maxQueuedHeaders && d.queue.PendingReceipts() < maxQueuedHeaders for _, ch := range []chan bool{d.bodyWakeCh, d.receiptWakeCh, d.stateWakeCh} { if cont { // We still have headers to fetch, send continuation wake signal (potential) -- cgit v1.2.3