Skip to content

Commit

Permalink
les/utils: UDP rate limiter (ethereum#21930)
Browse files Browse the repository at this point in the history
* les/utils: Limiter

* les/utils: dropped prior weight vs variable cost logic, using fixed weights

* les/utils: always create node selector in addressGroup

* les/utils: renamed request weight to request cost

* les/utils: simplified and improved the DoS penalty mechanism

* les/utils: minor fixes

* les/utils: made selection weight calculation nicer

* les/utils: fixed linter warning

* les/utils: more precise and reliable probabilistic test

* les/utils: fixed linter warning
  • Loading branch information
zsfelfoldi authored Jan 28, 2021
1 parent eb21c65 commit 7a800f9
Show file tree
Hide file tree
Showing 3 changed files with 625 additions and 14 deletions.
Loading

0 comments on commit 7a800f9

Please sign in to comment.