- 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
17 lines
546 B
Python
Executable File
17 lines
546 B
Python
Executable File
with open("/home/oib/windsurf/aitbc/apps/blockchain-node/src/aitbc_chain/mempool.py", "r") as f:
|
|
content = f.read()
|
|
|
|
# Fix the missing chain_id parameter in _update_gauge call
|
|
content = content.replace(
|
|
"""def _update_gauge(self) -> None:""",
|
|
"""def _update_gauge(self, chain_id: str = "ait-devnet") -> None:"""
|
|
)
|
|
|
|
content = content.replace(
|
|
"""self._update_gauge()""",
|
|
"""self._update_gauge(chain_id)"""
|
|
)
|
|
|
|
with open("/home/oib/windsurf/aitbc/apps/blockchain-node/src/aitbc_chain/mempool.py", "w") as f:
|
|
f.write(content)
|