fix: Only send domains expiry after threshold not before
All checks were successful
Build Docker / Build Image (push) Successful in 33s
All checks were successful
Build Docker / Build Image (push) Successful in 33s
This commit is contained in:
2
gift.py
2
gift.py
@@ -102,7 +102,7 @@ def gift(name,email,referer, ip,api=False):
|
|||||||
tmpnames = names.json()
|
tmpnames = names.json()
|
||||||
domain = None
|
domain = None
|
||||||
for name in tmpnames['domains']:
|
for name in tmpnames['domains']:
|
||||||
if (name['expireBlock'] - tmpnames['currentHeight']) < EXPIRY_THRESHOLD:
|
if (name['expireBlock'] - tmpnames['currentHeight']) > EXPIRY_THRESHOLD:
|
||||||
domain = name['name']
|
domain = name['name']
|
||||||
break
|
break
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user