go-ethereum/eth/txtracker
Csaba Kiraly 111d90aef8 eth/txtracker: track per-peer tx-request response latency
Adds NotifyRequestLatency(peer, latency) and a slow per-peer EMA
(alpha=0.01, ~70-sample half-life) that the dropper will use as a
new protection signal. The first sample seeds the EMA directly so
fresh peers don't ramp up from zero. RequestSamples is exposed
alongside the EMA so consumers can apply a minimum-samples bootstrap
guard before trusting the value.

Includes design notes for the broader peerdrop-latency feature.
2026-04-20 09:07:04 +02:00
..
tracker.go eth/txtracker: track per-peer tx-request response latency 2026-04-20 09:07:04 +02:00
tracker_test.go eth/txtracker: track per-peer tx-request response latency 2026-04-20 09:07:04 +02:00