Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

p2p/enode: add quic ENR entry #30283

Merged
merged 4 commits into from
Sep 13, 2024
Merged

p2p/enode: add quic ENR entry #30283

merged 4 commits into from
Sep 13, 2024

Conversation

guillaumemichel
Copy link
Contributor

Add quic entry to the ENR as proposed in ethereum/consensus-specs#3644

Allowing to read Lighthouse quic port from ENR.

p2p/enode/node.go Outdated Show resolved Hide resolved
@fjl
Copy link
Contributor

fjl commented Aug 9, 2024

Not sure if we actually need the accessor on enode.Node at this point. We can keep QUICEndpoint but make it query the ENR directly instead of caching the port.

p2p/enode/node.go Show resolved Hide resolved
@fjl fjl changed the title p2p: add quic ENR entry p2p/enode: add quic ENR entry Aug 14, 2024
@lightclient
Copy link
Member

I added a few more tests here. It didn't seem like the included test was really verifying the port was loaded correctly. Also verifying we don't return an endpoint with a quic6 port for IPv4 and vice versa. Not sure how important that is.

@cortze
Copy link
Contributor

cortze commented Sep 2, 2024

Any update on the status of this PR?

@guillaumemichel
Copy link
Contributor Author

Is the PR good for merge?

@fjl fjl merged commit f544fc3 into ethereum:master Sep 13, 2024
3 checks passed
@fjl fjl added this to the 1.14.9 milestone Sep 13, 2024
@guillaumemichel guillaumemichel deleted the enr-quic branch September 17, 2024 08:42
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.

4 participants