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

15 lines
865 B
Python

import re
with open("/home/oib/windsurf/aitbc/cli/aitbc_cli/commands/blockchain.py", "r") as f:
content = f.read()
# Since /rpc/mempool doesn't exist on the node, let's remove it and use an endpoint that exists like /rpc/transactions
# Wait, /rpc/transactions exists! Let's rename the mempool command to transactions
content = content.replace('f"{_get_node_endpoint(ctx)}/rpc/mempool?chain_id={chain_id}"', 'f"{_get_node_endpoint(ctx)}/rpc/transactions?chain_id={chain_id}"')
content = content.replace('def mempool(ctx, chain_id):', 'def transactions(ctx, chain_id):')
content = content.replace('Get the mempool status of a chain', 'Get latest transactions on a chain')
content = content.replace('Failed to get mempool', 'Failed to get transactions')
with open("/home/oib/windsurf/aitbc/cli/aitbc_cli/commands/blockchain.py", "w") as f:
f.write(content)