fix: change blockchain sync default hosts from 10.1.223.40 to localhost and disable block production in RPC service
All checks were successful
Systemd Sync / sync-systemd (push) Successful in 17s

Update blockchain-sync-wrapper.py to use 127.0.0.1 as default for SYNC_LEADER_HOST, SYNC_SOURCE_HOST, and SYNC_IMPORT_HOST instead of hardcoded 10.1.223.40. Replace UnsetEnvironment directive with explicit enable_block_production=false in blockchain-rpc.service to ensure block production is disabled.
This commit is contained in:
aitbc
2026-04-28 08:38:43 +02:00
parent 83c4c58d2b
commit e01fb36db8
2 changed files with 4 additions and 4 deletions

View File

@@ -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