4 Commits

Author SHA1 Message Date
d33336a643 fix: Correct missing sorting for date
All checks were successful
Tests and Linting / Tests-Linting (3.11) (push) Successful in 35s
Tests and Linting / Tests-Linting (3.10) (push) Successful in 43s
Tests and Linting / Tests-Linting (3.13) (push) Successful in 44s
Build Docker / Build Images (map[dockerfile:Dockerfile.hsd tag_suffix:-hsd target:hsd]) (push) Successful in 51s
Build Docker / Build Images (map[dockerfile:Dockerfile tag_suffix: target:default]) (push) Successful in 1m0s
2025-09-24 12:32:06 +10:00
be760ddc8b fix: Try new sorting method again
All checks were successful
Tests and Linting / Tests-Linting (3.11) (push) Successful in 37s
Tests and Linting / Tests-Linting (3.10) (push) Successful in 43s
Tests and Linting / Tests-Linting (3.13) (push) Successful in 45s
Build Docker / Build Images (map[dockerfile:Dockerfile.hsd tag_suffix:-hsd target:hsd]) (push) Successful in 54s
Build Docker / Build Images (map[dockerfile:Dockerfile tag_suffix: target:default]) (push) Successful in 1m0s
2025-09-24 12:29:14 +10:00
1b53c2a905 fix: Try a new sorting method
All checks were successful
Tests and Linting / Tests-Linting (3.10) (push) Successful in 29s
Tests and Linting / Tests-Linting (3.11) (push) Successful in 30s
Tests and Linting / Tests-Linting (3.13) (push) Successful in 33s
Build Docker / Build Images (map[dockerfile:Dockerfile.hsd tag_suffix:-hsd target:hsd]) (push) Successful in 39s
Build Docker / Build Images (map[dockerfile:Dockerfile tag_suffix: target:default]) (push) Successful in 48s
2025-09-24 12:23:48 +10:00
5f46f1e3bf fix: Try to sort unknown domains together
All checks were successful
Build Docker / Build Images (map[dockerfile:Dockerfile.hsd tag_suffix:-hsd target:hsd]) (push) Successful in 3m0s
Build Docker / Build Images (map[dockerfile:Dockerfile tag_suffix: target:default]) (push) Successful in 3m1s
Tests and Linting / Tests-Linting (3.11) (push) Successful in 3m10s
Tests and Linting / Tests-Linting (3.13) (push) Successful in 3m15s
Tests and Linting / Tests-Linting (3.10) (push) Successful in 3m20s
2025-09-24 12:04:06 +10:00
3 changed files with 12 additions and 15 deletions

Binary file not shown.

View File

@@ -45,7 +45,9 @@ if HSD_INTERNAL_NODE:
HSD_API = "firewallet-" + str(int(time.time()))
HSD_IP = "localhost"
SHOW_EXPIRED = os.getenv("SHOW_EXPIRED","false").lower() in ["1","true","yes"]
SHOW_EXPIRED = os.getenv("SHOW_EXPIRED")
if SHOW_EXPIRED is None:
SHOW_EXPIRED = False
HSD_PROCESS = None
SPV_MODE = None
@@ -366,7 +368,7 @@ def getBalance(account: str):
available = available / 1000000
logger.debug(f"Initial balance for account {account}: total={total}, available={available}, locked={locked}")
domains = getDomains(account,True,True)
domains = getDomains(account)
domainValue = 0
domains_to_update = [] # Track domains that need cache updates
@@ -473,27 +475,22 @@ def getPendingTX(account: str):
return pending
def getDomains(account, own: bool = True, expired: bool = SHOW_EXPIRED):
def getDomains(account, own=True):
if own:
response = requests.get(get_wallet_api_url(f"/wallet/{account}/name?own=true"))
else:
response = requests.get(get_wallet_api_url(f"/wallet/{account}/name"))
info = response.json()
if expired:
if SHOW_EXPIRED:
return info
# Remove any expired domains
domains = []
for domain in info:
if 'stats' in domain and domain['stats'] is not None:
if 'stats' in domain:
if 'daysUntilExpire' in domain['stats']:
if domain['stats']['daysUntilExpire'] < 0:
logger.debug(f"Excluding expired domain: {domain['name']} due to daysUntilExpire")
continue
if 'blocksSinceExpired' in domain['stats']:
if domain['stats']['blocksSinceExpired'] > 0:
logger.debug(f"Excluding expired domain: {domain['name']} due to blocksSinceExpired")
continue
domains.append(domain)
@@ -1576,9 +1573,9 @@ def getMempoolBids():
# region settingsAPIs
def rescan(height:int = 0):
def rescan():
try:
response = hsw.walletRescan(height)
response = hsw.walletRescan(0)
if 'success' in response and response['success'] is False:
return {
"error": {

File diff suppressed because one or more lines are too long