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

Improved eth_syncing #10398

Merged
merged 11 commits into from
May 20, 2024
Merged

Improved eth_syncing #10398

merged 11 commits into from
May 20, 2024

Conversation

Giulio2002
Copy link
Collaborator

@Giulio2002 Giulio2002 commented May 17, 2024

The approach is simple, every time the Execution module sees a block it saves the number in DB. That number is the heuristics for the "tip of the chain".

Also changes from stages.Finish to stages.Execution. the issue was that for syncing up everything (stages.Headers as well) is in a single mdbx tx. Now we have separate key which is committed in a small Update before the processing.

@Giulio2002 Giulio2002 changed the title Improved `eth_Syncing Improved eth_syncing May 17, 2024
@Giulio2002
Copy link
Collaborator Author

Fixes #10248 #8752.

@Giulio2002
Copy link
Collaborator Author

Giulio2002 commented May 17, 2024

So uum, I also fixed #10307 since I was at it, but forgot to make a new branch :P

@AskAlexSharov
Copy link
Collaborator

@Giulio2002 why updaing this value only in InsertBlocks is not enough? why need update in UFC also?

@Giulio2002
Copy link
Collaborator Author

Giulio2002 commented May 18, 2024

@Giulio2002 why updaing this value only in InsertBlocks is not enough? why need update in UFC also?

Not sure if this is a good heuristics, I thought that perhaps on other chains, one day old blocks might get imported too? I am just not sure what we need in the future and at first glance ValidateChain and Forkchoice sounded like better candidates because they MUST be called near chain tip

@Giulio2002 Giulio2002 merged commit 9f2e943 into main May 20, 2024
10 checks passed
@Giulio2002 Giulio2002 deleted the better-eth-syncing branch May 20, 2024 16:51
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.

None yet

3 participants