lighthouse/beacon_node
Divma f11884ccdb enforce non zero enr ports (#4776)
## Issue Addressed

Right now lighthouse accepts zero as enr ports. Since enr ports should be reachable, zero ports should be rejected here

## Proposed Changes

- update the config to use `NonZerou16` as an ENR port for all enr-related fields.
- the enr builder from config now sets the enr to the listening port only if the enr port is not already set (prev behaviour) and the listening port is not zero (new behaviour)
- reject zero listening ports when used with `enr-match`. 
- boot node now rejects listening port as zero, since those are advertised.
- generate-bootnode-enr also rejected zero listening ports for the same reason.
- update local network scripts

## Additional Info

Unrelated, but why do we overwrite `enr-x-port` values with listening ports if `enr-match` is present? we prob should only do this for enr values that are not already set.
2023-10-03 23:59:34 +00:00
..
beacon_chain Use only lighthouse types in the mock builder (#4793) 2023-10-03 17:59:28 +00:00
beacon_processor Move dependencies to workspace (#4650) 2023-09-22 04:30:56 +00:00
builder_client Move dependencies to workspace (#4650) 2023-09-22 04:30:56 +00:00
client Move dependencies to workspace (#4650) 2023-09-22 04:30:56 +00:00
eth1 Move dependencies to workspace (#4650) 2023-09-22 04:30:56 +00:00
execution_layer Use only lighthouse types in the mock builder (#4793) 2023-10-03 17:59:28 +00:00
genesis Move dependencies to workspace (#4650) 2023-09-22 04:30:56 +00:00
http_api Use only lighthouse types in the mock builder (#4793) 2023-10-03 17:59:28 +00:00
http_metrics Move dependencies to workspace (#4650) 2023-09-22 04:30:56 +00:00
lighthouse_network enforce non zero enr ports (#4776) 2023-10-03 23:59:34 +00:00
network Move dependencies to workspace (#4650) 2023-09-22 04:30:56 +00:00
operation_pool Move dependencies to workspace (#4650) 2023-09-22 04:30:56 +00:00
src enforce non zero enr ports (#4776) 2023-10-03 23:59:34 +00:00
store Move dependencies to workspace (#4650) 2023-09-22 04:30:56 +00:00
tests Appease Clippy 1.68 and refactor http_api (#4068) 2023-03-13 01:40:03 +00:00
timer Move dependencies to workspace (#4650) 2023-09-22 04:30:56 +00:00
Cargo.toml Release v4.5.0 (#4768) 2023-09-25 05:14:01 +00:00