Skip to content

Add query limit to defend DDoS attack#2423

Merged
zzzckck merged 1 commit intobnb-chain:developfrom
zlacfzy:add_query_limit
Apr 25, 2024
Merged

Add query limit to defend DDoS attack#2423
zzzckck merged 1 commit intobnb-chain:developfrom
zlacfzy:add_query_limit

Conversation

@zlacfzy
Copy link
Copy Markdown
Contributor

@zlacfzy zlacfzy commented Apr 25, 2024

Description

Add query limit to defend DDoS attack. Max allow 100 different percentiles in rewardPercentiles.

Rationale

More bigger rewardPercentiles will enough to crash the serve.

Example

add an example CLI or API response...

Changes

Notable changes:

  • eth/gasprice/feehistory.go: add maxQueryLimit

@zlacfzy zlacfzy requested a review from zzzckck as a code owner April 25, 2024 03:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants