fix: Allow rescan while not in bidding
All checks were successful
Build Docker / Build Image (push) Successful in 3m35s

This commit is contained in:
2025-07-16 16:30:08 +10:00
parent 747ac575fa
commit 1d5ed059b3

View File

@@ -867,10 +867,12 @@ def rescan_auction(account, domain):
return {
"error": "Invalid domain"
}
if 'bidPeriodStart' not in response['result']['info']['stats']:
if 'height' not in response['result']['info']:
return {
"error": "Not in auction"
"error": "Can't find start"
}
height = response['result']['info']['height']-1
response = hsw.rpc_importName(domain, height)
return response