diff options
author | Felix Lange <fjl@twurst.com> | 2016-02-26 22:24:51 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2016-02-26 22:24:51 +0800 |
commit | 26e72b2ccd728b00e08bd692bdd7241ff0bfe2cc (patch) | |
tree | 04dc59bbadbc9541ec994a367aaf6ff6b149454e /eth | |
parent | a6903ad6a5b2cd8bb02ad85a9a612b575baf8362 (diff) | |
download | go-tangerine-26e72b2ccd728b00e08bd692bdd7241ff0bfe2cc.tar go-tangerine-26e72b2ccd728b00e08bd692bdd7241ff0bfe2cc.tar.gz go-tangerine-26e72b2ccd728b00e08bd692bdd7241ff0bfe2cc.tar.bz2 go-tangerine-26e72b2ccd728b00e08bd692bdd7241ff0bfe2cc.tar.lz go-tangerine-26e72b2ccd728b00e08bd692bdd7241ff0bfe2cc.tar.xz go-tangerine-26e72b2ccd728b00e08bd692bdd7241ff0bfe2cc.tar.zst go-tangerine-26e72b2ccd728b00e08bd692bdd7241ff0bfe2cc.zip |
eth/downloader: fix header download limiting
Fixes #2201
Diffstat (limited to 'eth')
-rw-r--r-- | eth/downloader/downloader.go | 2 |
1 files changed, 1 insertions, 1 deletions
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) |