Files
aitbc/dev/scripts/patches/patch_config_supported.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

13 lines
612 B
Python
Executable File

with open("/home/oib/windsurf/aitbc/apps/blockchain-node/src/aitbc_chain/config.py", "r") as f:
content = f.read()
content = content.replace(
""" chain_id: str = "ait-devnet\"""",
""" chain_id: str = "ait-devnet"
supported_chains: str = "ait-devnet" # Comma-separated list of supported chain IDs"""
)
# And define ProposerConfig in consensus/poa.py instead to avoid circular import or import issues
# Actually, the original code had it in consensus/poa.py, wait...
# In previous version `ProposerConfig` was defined in `consensus/poa.py` and we were trying to import it from `config.py`.