Skip to content

Commit

Permalink
fix: [vanity] length > 5 clusters
Browse files Browse the repository at this point in the history
  • Loading branch information
Terrtia committed Feb 19, 2024
1 parent 784579b commit 6fa8f6e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions bin/lib/objects/Domains.py
Original file line number Diff line number Diff line change
Expand Up @@ -679,13 +679,11 @@ def get_vanity_cluster(vanity, len_vanity=4, nb_min=4):
return get_vanity_clusters(nb_min=nb_min)
else:
clusters = {}
print(vanity, len_vanity, get_vanity_domains(vanity[:4], len_vanity=4))
for domain in get_vanity_domains(vanity[:4], len_vanity=4):
new_vanity = get_domain_vanity(domain, len_vanity=len_vanity)
if vanity not in clusters:
if new_vanity not in clusters:
clusters[new_vanity] = 0
clusters[new_vanity] += 1
print(clusters)
to_remove = []
for new_vanity in clusters:
if clusters[new_vanity] < nb_min:
Expand Down

0 comments on commit 6fa8f6e

Please sign in to comment.