Files
aitbc/dev/scripts/blockchain/fix_cross_site_sync.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

16 lines
585 B
Python
Executable File

with open("/home/oib/windsurf/aitbc/apps/blockchain-node/src/aitbc_chain/sync.py", "r") as f:
content = f.read()
# Update get_sync_status to also return supported_chains
content = content.replace(
""" return {
"chain_id": self._chain_id,
"head_height": head.height if head else -1,""",
""" return {
"chain_id": self._chain_id,
"head_height": head.height if head else -1,"""
)
# And in sync.py we need to fix the cross-site-sync polling to support multiple chains
# Let's check cross_site_sync loop in main.py