diff --git a/db/ens.go b/db/ens.go index 846aed9a3b..78ed3fad47 100644 --- a/db/ens.go +++ b/db/ens.go @@ -511,22 +511,21 @@ func validateEnsName(client *ethclient.Client, name string, alreadyChecked *EnsC addr, err := go_ens.Resolve(client, name) if err != nil { - if err.Error() == "unregistered name" || - err.Error() == "no address" || - err.Error() == "no resolver" || - err.Error() == "abi: attempting to unmarshall an empty string while arguments are expected" || - strings.Contains(err.Error(), "execution reverted") || - err.Error() == "invalid jump destination" { - // the given name is not available anymore or resolving it did not work properly => we can remove it from the db (if it is there) - err = removeEnsName(client, name) - if err != nil { - return fmt.Errorf("error removing ens name [%v]: %w", name, err) - } - - return nil + utils.LogError(err, "error, could not resolve name", 0, map[string]interface{}{"name": name}) + /* if err.Error() == "unregistered name" || + err.Error() == "no address" || + err.Error() == "no resolver" || + err.Error() == "abi: attempting to unmarshall an empty string while arguments are expected" || + strings.Contains(err.Error(), "execution reverted") || + err.Error() == "invalid jump destination" { */ + // the given name is not available anymore or resolving it did not work properly => we can remove it from the db (if it is there) + err = removeEnsName(client, name) + if err != nil { + return fmt.Errorf("error removing ens name [%v]: %w", name, err) } - - return fmt.Errorf("error could not resolve name [%v]: %w", name, err) + return nil + // } + // return fmt.Errorf("error could not resolve name [%v]: %w", name, err) } // we need to get the main domain to get the expiration date