Files
aitbc/apps/blockchain-node/src/aitbc_chain/rpc
aitbc 6c0cdc640b
Some checks failed
Integration Tests / test-service-integration (push) Has been cancelled
Python Tests / test-python (push) Has been cancelled
Security Scanning / security-scan (push) Has been cancelled
fix: restore blockchain RPC endpoints from dummy implementations to real functionality
Blockchain RPC Router Restoration:
 GET /head ENDPOINT: Restored from dummy to real implementation
- router.py: Query actual Block table for chain head instead of returning dummy data
- Added default chain_id from settings when not provided
- Added metrics tracking (total, success, not_found, duration)
- Returns real block data: height, hash, timestamp, tx_count
- Raises 404 when no blocks exist instead of returning zeros
2026-03-31 13:56:32 +02:00
..