go-ethereum/eth/fetcher
Bosul Mun e9e12a97d2
eth/fetcher: fix announcement drop logic (#32210)
This PR fixes an issue in the tx_fetcher DoS prevention logic where the
code keeps the overflow amount (`want - maxTxAnnounces`) instead of the
allowed amount (`maxTxAnnounces - used`). The specific changes are:

- Correct slice indexing in the announcement drop logic
- Extend the overflow test case to cover the inversion scenario
2025-07-14 21:33:24 +08:00
..
tx_fetcher.go eth/fetcher: fix announcement drop logic (#32210) 2025-07-14 21:33:24 +08:00
tx_fetcher_test.go eth/fetcher: fix announcement drop logic (#32210) 2025-07-14 21:33:24 +08:00