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

Add RPC method moon_getEthSyncBlockRange #2922

Merged
merged 13 commits into from
Sep 10, 2024
Merged

Add RPC method moon_getEthSyncBlockRange #2922

merged 13 commits into from
Sep 10, 2024

Conversation

librelois
Copy link
Collaborator

What does it do?

Add an RPC method that return the range of blocks that are fully indexed in frontier's backend.

Since the frontier backend sync backward, it's useless to return only the latest sync block, we should return the first one (the one closest to genesis) as well.

What important points reviewers should know?

Is there something left for follow-up PRs?

What alternative implementations were considered?

Are there relevant PRs or issues in other repositories (Substrate, Polkadot, Frontier, Cumulus)?

What value does it bring to the blockchain users?

@librelois librelois added B5-clientnoteworthy Changes should be mentioned in any downstream projects' release notes D2-notlive PR doesn't change runtime code (so can't be audited) breaking Needs to be mentioned in breaking changes labels Aug 30, 2024
Copy link
Contributor

github-actions bot commented Aug 30, 2024

WASM runtime size check:

Compared to target branch

Moonbase runtime: 2188 KB (no changes) ✅

Moonbeam runtime: 2120 KB (no changes) ✅

Moonriver runtime: 2132 KB (no changes) ✅

Compared to latest release (runtime-3102)

Moonbase runtime: 2188 KB (+248 KB compared to latest release) ⚠️

Moonbeam runtime: 2120 KB (+220 KB compared to latest release) ⚠️

Moonriver runtime: 2132 KB (+232 KB compared to latest release) ⚠️

@TarekkMA TarekkMA self-requested a review August 30, 2024 11:47
@librelois librelois marked this pull request as ready for review September 2, 2024 12:01
RomarQ
RomarQ previously approved these changes Sep 2, 2024
TarekkMA
TarekkMA previously approved these changes Sep 2, 2024
gonzamontiel
gonzamontiel previously approved these changes Sep 2, 2024
Copy link
Contributor

@gonzamontiel gonzamontiel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@RomarQ
Copy link
Contributor

RomarQ commented Sep 3, 2024

@librelois the new frontier pin seems to be causing the rust tests to fail.

@RomarQ RomarQ self-requested a review September 3, 2024 12:21
@noandrea noandrea dismissed stale reviews from gonzamontiel, TarekkMA, and RomarQ via 93de9e5 September 4, 2024 13:53
gonzamontiel
gonzamontiel previously approved these changes Sep 4, 2024
RomarQ
RomarQ previously approved these changes Sep 4, 2024
@librelois librelois changed the title Add RPC method moon_getFrontierSyncBlockRange Add RPC method moon_getEthSyncBlockRange Sep 4, 2024
TarekkMA
TarekkMA previously approved these changes Sep 5, 2024
@noandrea noandrea added the A8-mergeoncegreen Pull request is reviewed well. label Sep 5, 2024
@RomarQ RomarQ dismissed stale reviews from TarekkMA, gonzamontiel, and themself via a3aefc5 September 9, 2024 13:25
Copy link
Contributor

github-actions bot commented Sep 9, 2024

Coverage Report

@@                Coverage Diff                 @@
##           master   elois-sync-sql      +/-   ##
==================================================
+ Coverage   80.92%           80.93%   +0.01%     
  Files         286              286              
+ Lines       81932            81965      +33     
==================================================
+ Hits        66303            66331      +28     
+ Misses      15629            15634       +5     
Files Changed Coverage
/client/rpc/finality/src/lib.rs 81.25% (-6.89%) 🔽
/precompiles/proxy/src/tests.rs 96.77% (+0.09%) 🔼

Coverage generated Tue Sep 10 13:13:56 UTC 2024

Copy link
Collaborator Author

@librelois librelois left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@RomarQ RomarQ merged commit 3398a8f into master Sep 10, 2024
38 checks passed
@RomarQ RomarQ deleted the elois-sync-sql branch September 10, 2024 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A8-mergeoncegreen Pull request is reviewed well. 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)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants