feat: Add support for verbose sync status and don't require auth for some api routes

This commit is contained in:
2025-09-16 22:16:29 +10:00
parent 15d919ca97
commit d9e847a995
2 changed files with 29 additions and 17 deletions

View File

@@ -929,11 +929,14 @@ def getNodeSync():
return sync
def getWalletStatus():
def getWalletStatus(verbose: bool = False):
response = hsw.rpc_getWalletInfo()
if 'error' in response and response['error'] is not None:
return "Error"
if verbose:
return response.get('result', {})
# return response
walletHeight = response['result']['height']
# Get the current block height