From c28874bb1c9c6a92cb5aa05d9af3c6c0544f10da Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Tue, 13 Feb 2024 09:56:46 +1100 Subject: [PATCH 1/2] fix: Check that domains are closed before including their value --- account.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/account.py b/account.py index 16e12ec..521294f 100644 --- a/account.py +++ b/account.py @@ -134,7 +134,8 @@ def getBalance(account: str): domains = getDomains(account) domainValue = 0 for domain in domains: - domainValue += domain['value'] + if domain['state'] == "CLOSED": + domainValue += domain['value'] total = total - (domainValue/1000000) # Only keep 2 decimal places From f525c0f1fd23a98621c5a79f56149334bbd75bce Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Tue, 13 Feb 2024 10:00:55 +1100 Subject: [PATCH 2/2] fix: Update readme to include windows instructions --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 35db089..6b1d321 100644 --- a/README.md +++ b/README.md @@ -17,12 +17,19 @@ If you have HSD runnning on a separate computer also add the IP here Make sure HSD is running then run the following commands: +On Linux: ```bash python3 server.py # Or for more verbose output python3 main.py ``` +On Windows: +```bash +python main.py +``` + + Then access the wallet at http://localhost:5000