Skip to content

Conversation

@azteca1998
Copy link
Contributor

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.

@azteca1998 azteca1998 linked an issue Nov 11, 2025 that may be closed by this pull request
@github-actions github-actions bot added levm Lambda EVM implementation performance Block execution throughput and performance in general labels Nov 11, 2025
@azteca1998 azteca1998 marked this pull request as ready for review November 11, 2025 16:51
@azteca1998 azteca1998 requested a review from a team as a code owner November 11, 2025 16:51
@github-actions
Copy link

Lines of code report

Total lines added: 3
Total lines removed: 0
Total lines changed: 3

Detailed view
+-----------------------------------+-------+------+
| File                              | Lines | Diff |
+-----------------------------------+-------+------+
| ethrex/cmd/ethrex/initializers.rs | 447   | +3   |
+-----------------------------------+-------+------+

@github-actions
Copy link

github-actions bot commented Nov 11, 2025

Benchmark Block Execution Results Comparison Against Main

Command Mean [s] Min [s] Max [s] Relative
base 61.784 ± 0.300 61.369 62.454 1.00
head 62.200 ± 0.284 61.813 62.610 1.01 ± 0.01

Copy link
Contributor

Copilot AI left a 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.

@azteca1998 azteca1998 enabled auto-merge November 11, 2025 18:06
@azteca1998 azteca1998 added this pull request to the merge queue Nov 11, 2025
Merged via the queue into main with commit d04bca6 Nov 11, 2025
40 checks passed
@azteca1998 azteca1998 deleted the fix-flatkeyvalue-generation-fullsync branch November 11, 2025 18:40
@github-project-automation github-project-automation bot moved this from Todo to Done in ethrex_performance Nov 11, 2025
@github-project-automation github-project-automation bot moved this from In Review to Done in ethrex_l1 Nov 11, 2025
xqft pushed a commit that referenced this pull request Nov 11, 2025
**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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

levm Lambda EVM implementation performance Block execution throughput and performance in general

Projects

Status: Done
Archived in project

Development

Successfully merging this pull request may close these issues.

full-sync should generate the flatkeyvalue before the first block

4 participants