chore(execution): Refactor & Test Discovery Services#2341
chore(execution): Refactor & Test Discovery Services#2341
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
🟡 Heimdall Review Status
|
3dab16f to
1ebf037
Compare
78edbc9 to
43af5d0
Compare
a80eaac to
ba70349
Compare
Set the discv5 UDP listen port explicitly via ListenConfig instead of relying on the DEFAULT_DISCOVERY_V5_PORT constant, so the port in the ENR always matches --v5-addr. Extracts discv4_config() and discv5_config() methods to make the port wiring testable, and adds rstest parametrized tests that assert discv5_config().discovery_socket().port() == v5_addr.port().
ba70349 to
f316305
Compare
Review SummaryThe refactoring cleanly extracts Previous review findings (tautological test, Minor observations (not blocking):
No correctness, safety, or concurrency issues found. |
Summary
#2339 fixed this isue where the discv5 ENR was being stamped with the discv4 port (
v4_addr.port()) instead of the discv5 listen port (v5_addr.port()), making the node unreachable via discv5.This PR refactors the config construction and adds a bunch of unit testing to ensure ports and addresses across the discovery services are consistent and reachable.