fix: remove test logging

This commit is contained in:
2025-06-23 16:32:05 +10:00
parent 0082c0e9ec
commit 1e06605feb

View File

@@ -96,8 +96,6 @@ def transactions(txs):
if len(txs) == 0: if len(txs) == 0:
return '<tr><td colspan="5">No transactions found</td></tr>' return '<tr><td colspan="5">No transactions found</td></tr>'
html = '' html = ''
test = "1de69f8138513fd8d9f1b3a8285b06e4b94f74b919b123f5da37beb164bb1688"
for tx in txs: for tx in txs:
action = "HNS Transfer" action = "HNS Transfer"
address = tx["outputs"][0]["address"] address = tx["outputs"][0]["address"]
@@ -108,18 +106,11 @@ def transactions(txs):
isMulti = False isMulti = False
nameHashes = [] nameHashes = []
if tx["hash"] == test:
with open("test.json", "w") as f:
json.dump(tx, f, indent=4)
for txInput in tx["inputs"]: for txInput in tx["inputs"]:
if txInput["path"]: if txInput["path"]:
incomming = False incomming = False
amount -= txInput["value"] amount -= txInput["value"]
if tx["hash"] == test:
print(f"TEXT TX INPUT VALUE: {amount}")
for output in tx["outputs"]: for output in tx["outputs"]:
if output["covenant"]["action"] != "NONE": if output["covenant"]["action"] != "NONE":
if action == "HNS Transfer": if action == "HNS Transfer":