sigp / discv5

Rust implementation of Discovery v5
Apache License 2.0
163 stars 65 forks source link

Permit invalid Enrs #264

Closed AgeManning closed 2 weeks ago

AgeManning commented 3 weeks ago

Description

There are some circumstances, primarily in testing where nodes can send from one IP and receive traffic from another. The ENR can be set to the IP where it receives traffic from and therefore other nodes will contact it.

This PR adds a configuration option that allows users to form connections with these kinds of peers. It is not set by default, because in general these kinds of ENRs are faulty.

AgeManning commented 2 weeks ago

Closed in favour of #265