Skip to content

Conversation

@lakshya-sky
Copy link
Contributor

Motivation

Geth uses forkId for making connection as outlined in this post https://ethereum-magicians.org/t/all-core-devs-testing-acdt-46-july-28-2025/24889/6 and ethereum/go-ethereum#31944.

Description

Closes #5066

@lakshya-sky lakshya-sky requested a review from a team as a code owner November 17, 2025 01:57
@lakshya-sky lakshya-sky changed the title feature(l1): Add "eth" entry to local ENR feat(l1): Add "eth" entry to local ENR Nov 17, 2025
@lakshya-sky lakshya-sky marked this pull request as draft November 17, 2025 01:59
@lakshya-sky lakshya-sky force-pushed the feature/add-eth-entry-in-enr branch from ce9a937 to 647bce1 Compare November 17, 2025 19:26
@lakshya-sky lakshya-sky changed the title feat(l1): Add "eth" entry to local ENR feat(l1): add "eth" entry to local ENR Nov 17, 2025
* make storage variables as explicitly unused.
* add note for sorting the keys.

Signed-off-by: lakshya-sky <[email protected]>
@lakshya-sky lakshya-sky marked this pull request as ready for review November 18, 2025 15:07
pub tcp_port: Option<u16>,
pub udp_port: Option<u16>,
pub secp256k1: Option<H264>,
pub snap: Option<Vec<(Bytes, Bytes)>>,
Copy link
Collaborator

Choose a reason for hiding this comment

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

I can't find a "snap" entry in the spec. Could you link to where you found it?

structs::Encoder::new(&mut rlp)
.encode_field(&self.seq)
.encode_key_value_list::<Bytes>(&self.pairs)
.encode_key_value_list::<Bytes>(&self.pairs.encode_pairs())
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why this change?


impl NodeRecord {
pub fn decode_pairs(&self) -> NodeRecordPairs {
impl NodeRecordPairs {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why was this implementation switched with NodeRecord?

@lakshya-sky
Copy link
Contributor Author

Hey @MegaRedHand , I have made changes for another issue(#5068) in the current PR. I will close this and raise new PRs for each issues separately.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add "eth" entry to local ENR

2 participants