Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[proxyd]: Add block range rate limiting, and max block range to non-consensus mode #114

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

mdehoog
Copy link
Contributor

@mdehoog mdehoog commented Dec 25, 2024

Description

This PR implements two things:

  • the ability to limit the max block range, even if not in consensus mode
  • (opt-in, off by default) the ability to rate limit block range requests by block count

Tests

Added new tests.

Additional context

ethereum-optimism/optimism#6686 originally implemented the ability to limit block range requests. The initial implementation supported both consensus and non-consensus mode, however there was feedback on that PR that we already had latest block polling in consensus mode, and any block range limiting should be added to that.

We've since tried to use consensus mode, and even opened some PRs to help (e.g. ethereum-optimism/optimism#7275), but unfortunately our setup is not conducive to consensus mode.

@mdehoog mdehoog requested a review from a team as a code owner December 25, 2024 21:28
@mdehoog mdehoog requested a review from Inphi December 25, 2024 21:28
@jelias2
Copy link
Contributor

jelias2 commented Jan 10, 2025

Lmk if this is ready for review, typically would like to see CI passing as a prerequisite

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.

2 participants