diff --git a/waku/v2/dnsdisc/enr.go b/waku/v2/dnsdisc/enr.go index 5d71390c..55cd812a 100644 --- a/waku/v2/dnsdisc/enr.go +++ b/waku/v2/dnsdisc/enr.go @@ -67,7 +67,7 @@ func RetrieveNodes(ctx context.Context, url string, opts ...DnsDiscoveryOption) func hasUDP(node *enode.Node) bool { enrUDP := new(enr.UDP) if err := node.Record().Load(enr.WithEntry(enrUDP.ENRKey(), enrUDP)); err != nil { - return err == nil + return false } - return false + return true }