Files
aitbc/dev/scripts/patches/patch_app.py
oib 15427c96c0 chore: update file permissions to executable across repository
- Change file mode from 644 to 755 for all project files
- Add chain_id parameter to get_balance RPC endpoint with default "ait-devnet"
- Rename Miner.extra_meta_data to extra_metadata for consistency
2026-03-06 22:17:54 +01:00

28 lines
1.1 KiB
Python
Executable File

with open("/home/oib/windsurf/aitbc/apps/blockchain-node/src/aitbc_chain/app.py", "r") as f:
content = f.read()
content = content.replace(
""" _app_logger.info("Blockchain node started", extra={"chain_id": settings.chain_id})""",
""" _app_logger.info("Blockchain node started", extra={"supported_chains": settings.supported_chains})"""
)
content = content.replace(
""" @metrics_router.get("/health", tags=["health"], summary="Health check")
async def health() -> dict:
return {
"status": "ok",
"chain_id": settings.chain_id,
"proposer_id": settings.proposer_id,
}""",
""" @metrics_router.get("/health", tags=["health"], summary="Health check")
async def health() -> dict:
return {
"status": "ok",
"supported_chains": [c.strip() for c in settings.supported_chains.split(",") if c.strip()],
"proposer_id": settings.proposer_id,
}"""
)
with open("/home/oib/windsurf/aitbc/apps/blockchain-node/src/aitbc_chain/app.py", "w") as f:
f.write(content)