Skip to content

Conversation

@fedacking
Copy link
Contributor

@fedacking fedacking commented Oct 28, 2025

Motivation

The logs for the headers in snapsync shows inaccurate numbers due to the chunked header download. This pr aims to fix that and show the proper percentage of headers to download.

Description

  • Change METRICS.headers_downloaded to an IntCounter instead of AtomicU64
  • Removed METRICS.headers_to_download and replaced the calculation with METRICS.sync_head_block
  • Fixed METRICS.sync_head_block to include the proper

Works to improve #4950

@fedacking fedacking requested a review from a team as a code owner October 28, 2025 16:03
@github-actions github-actions bot added the L1 Ethereum client label Oct 28, 2025
@github-actions
Copy link

github-actions bot commented Oct 28, 2025

Lines of code report

Total lines added: 7
Total lines removed: 10
Total lines changed: 17

Detailed view
+----------------------------------------------+-------+------+
| File                                         | Lines | Diff |
+----------------------------------------------+-------+------+
| ethrex/crates/networking/p2p/metrics.rs      | 599   | +6   |
+----------------------------------------------+-------+------+
| ethrex/crates/networking/p2p/network.rs      | 364   | +1   |
+----------------------------------------------+-------+------+
| ethrex/crates/networking/p2p/peer_handler.rs | 1753  | -10  |
+----------------------------------------------+-------+------+

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

Labels

L1 Ethereum client

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

4 participants