Skip to content

chore(l1): improve discv5 new_nonce#5652

Merged
ElFantasma merged 1 commit intodiscv5from
discv5_improve_nonce
Dec 16, 2025
Merged

chore(l1): improve discv5 new_nonce#5652
ElFantasma merged 1 commit intodiscv5from
discv5_improve_nonce

Conversation

@edg-l
Copy link
Contributor

@edg-l edg-l commented Dec 16, 2025

Motivation
I saw current new_nonce impl allocated a vector when it can just return a fixed size array.

Description

Removes the needless vec

Checklist

  • Updated STORE_SCHEMA_VERSION (crates/storage/lib.rs) if the PR includes breaking changes to the Store requiring a re-sync.

@edg-l edg-l requested a review from a team as a code owner December 16, 2025 09:35
@github-actions github-actions bot added the L1 Ethereum client label Dec 16, 2025
@github-actions
Copy link

Lines of code report

Total lines added: 2
Total lines removed: 5
Total lines changed: 7

Detailed view
+-------------------------------------------------+-------+------+
| File                                            | Lines | Diff |
+-------------------------------------------------+-------+------+
| ethrex/crates/networking/p2p/discv5/codec.rs    | 48    | +2   |
+-------------------------------------------------+-------+------+
| ethrex/crates/networking/p2p/discv5/messages.rs | 525   | -5   |
+-------------------------------------------------+-------+------+

@github-project-automation github-project-automation bot moved this to In Review in ethrex_l1 Dec 16, 2025
@ElFantasma ElFantasma merged commit e247d48 into discv5 Dec 16, 2025
41 checks passed
@ElFantasma ElFantasma deleted the discv5_improve_nonce branch December 16, 2025 13:17
@github-project-automation github-project-automation bot moved this from In Review to Done in ethrex_l1 Dec 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

L1 Ethereum client

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants