mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-14 10:51:35 +00:00
Since PR #30822 moved DNS resolution from parse-time to dial-time, bootstrap nodes specified with DNS hostnames (e.g. enode://<key>@hostname:30303) fail with "missing IP address" because setFallbackNodes calls ValidateComplete which requires a valid IP. This is a regression from v1.14.x that blocks multiple L2 networks (Omni, Optimism, Unichain) from upgrading to v1.15+. Fix by resolving DNS hostnames in setFallbackNodes before validation, mirroring the dnsResolveHostname pattern used for static nodes in the dial scheduler. The resolved node retains its hostname for potential future periodic re-resolution. Fixes #31208 |
||
|---|---|---|
| .. | ||
| v4wire | ||
| v5wire | ||
| common.go | ||
| lookup.go | ||
| metrics.go | ||
| node.go | ||
| ntp.go | ||
| table.go | ||
| table_reval.go | ||
| table_reval_test.go | ||
| table_test.go | ||
| table_util_test.go | ||
| v4_lookup_test.go | ||
| v4_udp.go | ||
| v4_udp_test.go | ||
| v5_talk.go | ||
| v5_udp.go | ||
| v5_udp_test.go | ||