Skip to content

headerQueue.reserve

Source (upstream pre-purge) Current
File eth/downloader/fetchers_concurrent_headers.go fetchers_concurrent_headers_pow.go
Symbol headerQueue.reserve headerQueue.reserve
Ref 45baf2111~1 etc/v1.17.3-full-node

3-way merge — purge → getc ← upstream

pre-purge
// reserve is responsible for allocating a requested number of pending headers
// from the download queue to the specified peer.
func (q *headerQueue) reserve(peer *peerConnection, items int) (*fetchRequest, bool, bool) {
return q.queue.ReserveHeaders(peer, items), false, false
}
core-geth validation — **Identical** ✅ | | | |---|---| | File | [`fetchers_concurrent_headers.go`](https://github.com/etclabscore/core-geth/blob/v1.12.20/eth/downloader/fetchers_concurrent_headers.go) | | Symbol | `headerQueue.reserve` | | Ref | `v1.12.20` |

← Sync & Downloader