go-ethereum/tests/fuzzers/txfetcher
Csaba Kiraly b0a266d3c8 eth/fetcher: add onRequestLatency callback to tx fetcher
Adds an optional onRequestLatency(peer, latency) callback to the tx
fetcher constructor, fired exactly once per request:

- On in-time delivery: the actual round-trip latency (clock.Now - req.time).
- On timeout (req.time + txFetchTimeout exceeded): the timeout value
  itself, so slow peers contribute samples instead of being silently
  omitted from the downstream EMA.

Late deliveries for requests already counted as timeouts do not
double-record. Existing callers (handler.go, fuzzer, tests) pass nil
for the new parameter; handler wiring to txTracker follows in a
separate commit.
2026-04-20 09:07:04 +02:00
..
corpus eth: rework tx fetcher to use O(1) ops + manage network requests 2020-02-13 15:27:15 +02:00
txfetcher_fuzzer.go eth/fetcher: add onRequestLatency callback to tx fetcher 2026-04-20 09:07:04 +02:00
txfetcher_test.go all: update license comments and AUTHORS (#31133) 2025-02-05 23:01:17 +01:00