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
}