-
Notifications
You must be signed in to change notification settings - Fork 130
perf(levm): fix FlatKeyValue generation on full sync mode
#5274
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
Conversation
Lines of code reportTotal lines added: Detailed view |
Benchmark Block Execution Results Comparison Against Main
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR fixes the FlatKeyValue generation process for full sync mode by ensuring it's triggered after loading the genesis state, addressing a missing step that prevented proper database indexing during benchmarks.
- Added a call to
store.generate_flatkeyvalue()after store initialization when running in full sync mode - Updated CHANGELOG.md to document the fix
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| cmd/ethrex/initializers.rs | Added conditional call to generate FlatKeyValue in full sync mode after store initialization |
| CHANGELOG.md | Added entry documenting the fix with minor formatting adjustments to other entries |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <[email protected]>
**Motivation** The `FlatKeyValue` isn't being generated when running the benchmarks. **Description** Generate the `FlatKeyValue` after loading the genesis state when starting in fullsync mode. --------- Co-authored-by: Copilot <[email protected]>
Motivation
The
FlatKeyValueisn't being generated when running the benchmarks.Description
Generate the
FlatKeyValueafter loading the genesis state when starting in fullsync mode.