-
Notifications
You must be signed in to change notification settings - Fork 384
Add block range validation to eth_getLogs RPC #3250
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Contributor
WASM runtime size check:Compared to target branchMoonbase runtime: 2424 KB (no changes) 🚨 Moonbeam runtime: 2408 KB (no changes) 🚨 Moonriver runtime: 2396 KB (no changes) ✅ Compared to latest release (runtime-3600)Moonbase runtime: 2424 KB (+468 KB compared to latest release) 🚨 Moonbeam runtime: 2408 KB (+464 KB compared to latest release) 🚨 Moonriver runtime: 2396 KB (+456 KB compared to latest release) |
Contributor
Coverage Report@@ Coverage Diff @@
## master rq/add-block-range-limit +/- ##
===========================================================
Coverage 74.20% 74.20% 0.00%
Files 383 383
+ Lines 97217 97225 +8
===========================================================
+ Hits 72134 72139 +5
+ Misses 25083 25086 +3
|
stiiifff
approved these changes
Apr 16, 2025
RomarQ
added a commit
that referenced
this pull request
Apr 23, 2025
* add basic test * add max block range * validate error in test --------- Co-authored-by: snowmead <[email protected]> Co-authored-by: Michael Assaf <[email protected]>
RomarQ
added a commit
that referenced
this pull request
Apr 23, 2025
* Add block range validation to eth_getLogs RPC (#3250) * add basic test * add max block range * validate error in test --------- Co-authored-by: snowmead <[email protected]> Co-authored-by: Michael Assaf <[email protected]> * fix CI * fix CI --------- Co-authored-by: snowmead <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
B5-clientnoteworthy
Changes should be mentioned in any downstream projects' release notes
breaking
Needs to be mentioned in breaking changes
D2-notlive
PR doesn't change runtime code (so can't be audited)
dependencies
Pull requests that update a dependency file
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Depends on Frontier - moonbeam-foundation/frontier#245
Adds a cli parameter named
--max-block-range <RANGE>for customising the block range limit when queryingeth_getLogsRPC, the default value is1024blocks. Trying to queryeth_getLogsfor a block range higher than1024will result in the following error message:block range is too wide (maximum 1024).