Skip to content

headerQueue.request

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

3-way merge — purge → getc ← upstream

pre-purge
// request is responsible for converting a generic fetch request into a header
// one and sending it to the remote peer for fulfillment.
func (q *headerQueue) request(peer *peerConnection, req *fetchRequest, resCh chan *eth.Response) (*eth.Request, error) {
peer.log.Trace("Requesting new batch of headers", "from", req.From)
return peer.peer.RequestHeadersByNumber(req.From, MaxHeaderFetch, 0, false, resCh)
}
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.request` | | Ref | `v1.12.20` |

← Sync & Downloader