Skip to content

Commit a4f4846

Browse files
fjlobscuren
authored andcommitted
[release/1.3.4] eth/downloader: fix header download limiting
Fixes ethereum#2201 (cherry picked from commit 26e72b2)
1 parent 7f83e68 commit a4f4846

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eth/downloader/downloader.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1216,7 +1216,7 @@ func (d *Downloader) fetchHeaders(p *peer, td *big.Int, from uint64) error {
12161216
}
12171217
}
12181218
// Notify the content fetchers of new headers, but stop if queue is full
1219-
cont := d.queue.PendingBlocks() < maxQueuedHeaders || d.queue.PendingReceipts() < maxQueuedHeaders
1219+
cont := d.queue.PendingBlocks() < maxQueuedHeaders && d.queue.PendingReceipts() < maxQueuedHeaders
12201220
for _, ch := range []chan bool{d.bodyWakeCh, d.receiptWakeCh, d.stateWakeCh} {
12211221
if cont {
12221222
// We still have headers to fetch, send continuation wake signal (potential)

0 commit comments

Comments
 (0)