Skip to content

Conversation

@RomarQ
Copy link
Contributor

@RomarQ RomarQ commented Apr 9, 2025

Depends on Frontier - moonbeam-foundation/frontier#245

⚠️ Breaking Changes ⚠️

Adds a cli parameter named --max-block-range <RANGE> for customising the block range limit when querying eth_getLogs RPC, the default value is 1024 blocks. Trying to query eth_getLogs for a block range higher than 1024 will result in the following error message: block range is too wide (maximum 1024).

@github-actions
Copy link
Contributor

github-actions bot commented Apr 9, 2025

WASM runtime size check:

Compared to target branch

Moonbase 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) ⚠️

@github-actions
Copy link
Contributor

github-actions bot commented Apr 9, 2025

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     
Files Changed Coverage
/node/cli/src/cli.rs 29.47% (+0.44%) 🔼
/node/service/src/lib.rs 61.80% (+0.01%) 🔼
/node/service/src/rpc.rs 85.00% (+0.10%) 🔼

Coverage generated Wed Apr 16 09:19:09 UTC 2025

@RomarQ RomarQ added the B5-clientnoteworthy Changes should be mentioned in any downstream projects' release notes label Apr 14, 2025
@RomarQ RomarQ added breaking Needs to be mentioned in breaking changes D2-notlive PR doesn't change runtime code (so can't be audited) labels Apr 14, 2025
@RomarQ RomarQ marked this pull request as ready for review April 15, 2025 13:19
@RomarQ RomarQ added the dependencies Pull requests that update a dependency file label Apr 16, 2025
@RomarQ RomarQ merged commit 5bfcc59 into master Apr 16, 2025
40 checks passed
@RomarQ RomarQ deleted the rq/add-block-range-limit branch April 16, 2025 10:18
@RomarQ RomarQ mentioned this pull request Apr 23, 2025
13 tasks
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants