Skip to content

Conversation

@fmoletta
Copy link
Contributor

@fmoletta fmoletta commented Nov 13, 2025

Motivation
Keep track of the client version used in the latest snap sync cycle and print it out upon startup

Description

  • Save the client version upon snap sync completion on the Store
  • Upon startup print out the client version for the latest completed snap sync if available

@github-actions github-actions bot added the L1 Ethereum client label Nov 13, 2025
@github-actions
Copy link

Lines of code report

Total lines added: 37
Total lines removed: 0
Total lines changed: 37

Detailed view
+---------------------------------------------+-------+------+
| File                                        | Lines | Diff |
+---------------------------------------------+-------+------+
| ethrex/cmd/ethrex/initializers.rs           | 447   | +3   |
+---------------------------------------------+-------+------+
| ethrex/crates/networking/p2p/sync.rs        | 1384  | +3   |
+---------------------------------------------+-------+------+
| ethrex/crates/storage/api.rs                | 248   | +2   |
+---------------------------------------------+-------+------+
| ethrex/crates/storage/store.rs              | 1527  | +6   |
+---------------------------------------------+-------+------+
| ethrex/crates/storage/store_db/in_memory.rs | 638   | +8   |
+---------------------------------------------+-------+------+
| ethrex/crates/storage/store_db/rocksdb.rs   | 1611  | +15  |
+---------------------------------------------+-------+------+

@fmoletta fmoletta marked this pull request as ready for review November 13, 2025 20:55
@fmoletta fmoletta requested a review from a team as a code owner November 13, 2025 20:55
@ethrex-project-sync ethrex-project-sync bot moved this to In Review in ethrex_l1 Nov 13, 2025
@mpaulucci
Copy link
Collaborator

why do we need this?

store.generate_flatkeyvalue()?;

if let Some(latest_snap_client_version) = store.get_snap_client_version().await? {
info!("Latest snap sync performed at client version {latest_snap_client_version}");
Copy link
Collaborator

Choose a reason for hiding this comment

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

why is this useful?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

L1 Ethereum client

Projects

Status: In Review

Development

Successfully merging this pull request may close these issues.

3 participants