chore: remove configuration files and enhance blockchain explorer with advanced search, analytics, and export features
- Delete .aitbc.yaml.example CLI configuration template - Delete .lycheeignore link checker exclusion rules - Delete .nvmrc Node.js version specification - Add advanced search panel with filters for address, amount range, transaction type, time range, and validator - Add analytics dashboard with transaction volume, active addresses, and block time metrics - Add Chart.js integration
This commit is contained in:
26
dev/scripts/patch_mempool6.py
Normal file
26
dev/scripts/patch_mempool6.py
Normal file
@@ -0,0 +1,26 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user