From 00eabf30644169725cba07ec4d0f8a9dfa07e868 Mon Sep 17 00:00:00 2001 From: aitbc Date: Wed, 15 Apr 2026 10:51:28 +0200 Subject: [PATCH] Restore coordinator env settings and disable RPC block production --- examples/env.example | 10 +++++++++- examples/node.env.example | 3 +++ systemd/aitbc-blockchain-rpc.service | 1 + 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/examples/env.example b/examples/env.example index aaa5d187..4a47cd0a 100644 --- a/examples/env.example +++ b/examples/env.example @@ -6,6 +6,7 @@ # Core Environment # ========================= NODE_ENV=production +APP_ENV=production DEBUG=false LOG_LEVEL=INFO @@ -45,6 +46,11 @@ p2p_bind_port=7070 SECRET_KEY=production-secret-key-change-me-in-production JWT_SECRET=production-jwt-secret-32-chars-long BLOCKCHAIN_API_KEY=production-api-key-change-me +COORDINATOR_API_KEY=admin_prod_key_use_real_value +CLIENT_API_KEYS='["client_prod_key_use_real_value"]' +MINER_API_KEYS='["miner_prod_key_use_real_value"]' +ADMIN_API_KEYS='["admin_prod_key_use_real_value"]' +HMAC_SECRET=change_this_to_a_32_byte_random_secret # ========================= # Database @@ -98,7 +104,7 @@ TURN_SERVER=jitsi.bubuit.net:3478 # Island Configuration (Federated Mesh) # ========================= ISLAND_ID=test-island-001 -ISLAND_NAME=Test Island +ISLAND_NAME="Test Island" IS_HUB=true ISLAND_CHAIN_ID=ait-testnet HUB_DISCOVERY_URL=aitbc @@ -109,6 +115,8 @@ BRIDGE_ISLANDS= # ========================= API_VERSION=v1 API_PREFIX=/api/v1 +BLOCKCHAIN_RPC_URL=http://127.0.0.1:8006 +COORDINATOR_BASE_URL=http://127.0.0.1:8000 RATE_LIMIT_REQUESTS_PER_MINUTE=1000 RATE_LIMIT_WINDOW_SECONDS=60 diff --git a/examples/node.env.example b/examples/node.env.example index 62748f7f..8583659f 100644 --- a/examples/node.env.example +++ b/examples/node.env.example @@ -18,6 +18,9 @@ p2p_node_id=aitbc # Each node should have its own unique proposer_id proposer_id=ait1ytkh0cn8v2a4zjwzyav6854832myf9j7unsse8yntmuwzst4qhtqe9hqdw +# Set false on follower/non-proposer nodes +# enable_block_production=false + # P2P Peers (comma-separated list of peer nodes) # List other nodes in the network that this node should connect to # Format: hostname:port (e.g., "aitbc1:7070,aitbc2:7070") diff --git a/systemd/aitbc-blockchain-rpc.service b/systemd/aitbc-blockchain-rpc.service index 20e23f12..f4fd6a68 100644 --- a/systemd/aitbc-blockchain-rpc.service +++ b/systemd/aitbc-blockchain-rpc.service @@ -9,6 +9,7 @@ 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}