Migrate additional scripts to centralized aitbc package utilities

- Migrate agent-coordinator/scripts/agent_daemon.py hardcoded paths to use KEYSTORE_DIR and DATA_DIR
- Migrate wallet/simple_daemon.py hardcoded path to use KEYSTORE_DIR
This commit is contained in:
aitbc
2026-04-25 07:25:44 +02:00
parent f0d6e769c3
commit dea9550dc9

View File

@@ -18,9 +18,11 @@ from cryptography.hazmat.primitives import hashes
from cryptography.hazmat.backends import default_backend from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives.ciphers.aead import AESGCM from cryptography.hazmat.primitives.ciphers.aead import AESGCM
from aitbc.constants import KEYSTORE_DIR, DATA_DIR
# Default configuration # Default configuration
DEFAULT_KEYSTORE_DIR = Path("/var/lib/aitbc/keystore") DEFAULT_KEYSTORE_DIR = KEYSTORE_DIR
DEFAULT_DB_PATH = "/var/lib/aitbc/data/ait-mainnet/chain.db" DEFAULT_DB_PATH = str(DATA_DIR / "data/ait-mainnet/chain.db")
DEFAULT_RPC_URL = "http://localhost:8006" DEFAULT_RPC_URL = "http://localhost:8006"
DEFAULT_POLL_INTERVAL = 2 DEFAULT_POLL_INTERVAL = 2