Files
aitbc/dev/scripts/patches/patch_mempool6.py
oib 3df0a9ed62 chore(cleanup): remove obsolete scripts and update paths for production deployment
- 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
2026-03-04 13:24:38 +01:00

27 lines
1.0 KiB
Python

with open("/home/oib/windsurf/aitbc/apps/blockchain-node/src/aitbc_chain/mempool.py", "r") as f:
content = f.read()
# Fix InMemoryMempool methods to accept chain_id
content = content.replace(
""" def list_transactions(self) -> List[PendingTransaction]:""",
""" def list_transactions(self, chain_id: str = "ait-devnet") -> List[PendingTransaction]:"""
)
content = content.replace(
""" def drain(self, max_count: int, max_bytes: int) -> List[PendingTransaction]:""",
""" def drain(self, max_count: int, max_bytes: int, chain_id: str = "ait-devnet") -> List[PendingTransaction]:"""
)
content = content.replace(
""" def remove(self, tx_hash: str) -> bool:""",
""" def remove(self, tx_hash: str, chain_id: str = "ait-devnet") -> bool:"""
)
content = content.replace(
""" def size(self) -> int:""",
""" def size(self, chain_id: str = "ait-devnet") -> int:"""
)
with open("/home/oib/windsurf/aitbc/apps/blockchain-node/src/aitbc_chain/mempool.py", "w") as f:
f.write(content)