fix: remove unused tx_hash variable and replace bare except in agent_daemon.py
Some checks failed
Integration Tests / test-service-integration (push) Has been cancelled
Python Tests / test-python (push) Has been cancelled
Security Scanning / security-scan (push) Has been cancelled
Production Tests / Production Integration Tests (push) Failing after 12s

- Removed unused tx_hash variable on line 104 (F841)
- Replaced bare except with specific json.JSONDecodeError on line 191 (E722)
This commit is contained in:
aitbc
2026-04-19 18:02:28 +02:00
parent 7eb97d1c76
commit b4c88e7110

View File

@@ -101,7 +101,6 @@ def create_tx(private_bytes: bytes, from_addr: str, to_addr: str, amount: float,
} }
tx_string = json.dumps(tx, sort_keys=True) tx_string = json.dumps(tx, sort_keys=True)
tx_hash = hashlib.sha256(tx_string.encode()).hexdigest()
tx["signature"] = priv_key.sign(tx_string.encode()).hex() tx["signature"] = priv_key.sign(tx_string.encode()).hex()
tx["public_key"] = pub_hex tx["public_key"] = pub_hex
return tx return tx