- Remove dev/scripts/check-file-organization.sh (obsolete organization checker) - Remove dev/scripts/community_onboarding.py (unused 559-line automation script) - Update gpu_miner_host.py log path from /home/oib/windsurf/aitbc to /opt/aitbc - Add service status and standardization badges to README.md
26 lines
966 B
Python
26 lines
966 B
Python
with open("/home/oib/windsurf/aitbc/cli/aitbc_cli/commands/blockchain.py", "r") as f:
|
|
content = f.read()
|
|
|
|
# Fix the node status endpoints to reflect the new architecture
|
|
# Node 1 on container is at localhost:8082 but the endpoint is /rpc/head or /health, and it expects a chain_id.
|
|
# Let's hit the health endpoint instead for status.
|
|
content = content.replace(
|
|
""" try:
|
|
with httpx.Client() as client:
|
|
response = client.get(
|
|
f"{rpc_url}/head",
|
|
timeout=5
|
|
)""",
|
|
""" try:
|
|
with httpx.Client() as client:
|
|
# First get health for general status
|
|
health_url = rpc_url.replace("/rpc", "") + "/health" if "/rpc" in rpc_url else rpc_url + "/health"
|
|
response = client.get(
|
|
health_url,
|
|
timeout=5
|
|
)"""
|
|
)
|
|
|
|
with open("/home/oib/windsurf/aitbc/cli/aitbc_cli/commands/blockchain.py", "w") as f:
|
|
f.write(content)
|