go-ethereum/eth/peerstats
Csaba Kiraly b178ec9a4a eth/peerstats: bump MinLatencySamples from 10 to 100
Require substantially more samples before a peer's request-latency EMA
becomes eligible for protection. A 10-sample floor was too low: a peer
hitting 10 fast replies in a short burst could earn protection before
the slow alpha=0.01 EMA had moved meaningfully away from the bootstrap
value. At ~70-sample EMA half-life, a 100-sample floor means the EMA
has been refined through several half-lives before it can affect
dropping decisions.

Updates the dropper tests that previously used RequestSamples=50 to
use peerstats.MinLatencySamples so they stay robust to future value
changes. Design notes and a test comment reference the new value.
2026-04-20 09:30:52 +02:00
..
peerstats.go eth/peerstats: bump MinLatencySamples from 10 to 100 2026-04-20 09:30:52 +02:00
peerstats_test.go eth/peerstats: bump MinLatencySamples from 10 to 100 2026-04-20 09:30:52 +02:00