diff --git a/scripts/wrappers/aitbc-blockchain-sync-wrapper.py b/scripts/wrappers/aitbc-blockchain-sync-wrapper.py index bf465b87..a07b445c 100755 --- a/scripts/wrappers/aitbc-blockchain-sync-wrapper.py +++ b/scripts/wrappers/aitbc-blockchain-sync-wrapper.py @@ -25,10 +25,10 @@ os.environ["LOG_DIR"] = str(LOG_DIR) redis_url = os.getenv("SYNC_REDIS_URL", "redis://localhost:6379") node_id = os.getenv("SYNC_NODE_ID", "ait18yefwwclgmyu2a74zvv0hj3a3xw6gxsn4akrj963kp069j9xy5ns3kurun") rpc_port = os.getenv("SYNC_RPC_PORT", "8006") -leader_host = os.getenv("SYNC_LEADER_HOST", "10.1.223.40") -source_host = os.getenv("SYNC_SOURCE_HOST", "10.1.223.40") +leader_host = os.getenv("SYNC_LEADER_HOST", "127.0.0.1") +source_host = os.getenv("SYNC_SOURCE_HOST", "127.0.0.1") source_port = os.getenv("SYNC_SOURCE_PORT", "8006") -import_host = os.getenv("SYNC_IMPORT_HOST", "10.1.223.40") +import_host = os.getenv("SYNC_IMPORT_HOST", "127.0.0.1") import_port = os.getenv("SYNC_IMPORT_PORT", "8006") # Execute the actual service diff --git a/systemd/aitbc-blockchain-rpc.service b/systemd/aitbc-blockchain-rpc.service index 57577b2e..94a77860 100644 --- a/systemd/aitbc-blockchain-rpc.service +++ b/systemd/aitbc-blockchain-rpc.service @@ -12,7 +12,7 @@ ExecStartPre=/opt/aitbc/scripts/utils/load-keystore-secrets.sh EnvironmentFile=/run/aitbc/secrets/.env EnvironmentFile=/etc/aitbc/.env EnvironmentFile=/etc/aitbc/node.env -UnsetEnvironment=enable_block_production ENABLE_BLOCK_PRODUCTION +Environment=enable_block_production=false ExecStart=/opt/aitbc/venv/bin/python /opt/aitbc/scripts/wrappers/aitbc-blockchain-rpc-wrapper.py Restart=always RestartSec=5