Fix RPC block production override and restore coordinator env vars after consolidation
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
Systemd Sync / sync-systemd (push) Has been cancelled

This commit is contained in:
aitbc
2026-04-15 11:32:50 +02:00
parent 734bbd6305
commit 20b96881c4
3 changed files with 11 additions and 3 deletions

View File

@@ -9,10 +9,10 @@ Group=root
WorkingDirectory=/opt/aitbc/apps/blockchain-node
EnvironmentFile=/etc/aitbc/.env
EnvironmentFile=/etc/aitbc/node.env
Environment=enable_block_production=false
Environment=PATH=/usr/bin:/usr/local/bin:/usr/bin:/bin
Environment=PYTHONPATH=/opt/aitbc/apps/blockchain-node/src:/opt/aitbc/apps/blockchain-node/scripts
ExecStart=/opt/aitbc/venv/bin/python -m uvicorn aitbc_chain.app:app --host ${rpc_bind_host} --port ${rpc_bind_port}
UnsetEnvironment=enable_block_production ENABLE_BLOCK_PRODUCTION
ExecStart=/usr/bin/env enable_block_production=false /opt/aitbc/venv/bin/python -m uvicorn aitbc_chain.app:app --host ${rpc_bind_host} --port ${rpc_bind_port}
Restart=always
RestartSec=5
StandardOutput=journal