feat: add chain_id support to blockchain CLI and update training script
Some checks failed
CLI Tests / test-cli (push) Has been cancelled
Cross-Node Transaction Testing / transaction-test (push) Has been cancelled
Deploy to Testnet / deploy-testnet (push) Has been cancelled
Integration Tests / test-service-integration (push) Has been cancelled
Multi-Node Stress Testing / stress-test (push) Has been cancelled
Node Failover Simulation / failover-test (push) Has been cancelled
Python Tests / test-python (push) Has been cancelled
Security Scanning / security-scan (push) Has been cancelled
API Endpoint Tests / test-api-endpoints (push) Has been cancelled

- Add chain_id parameter to blockchain block command for multi-chain support
- Update block query to pass chain_id as request parameter
- Update block output fields to match RPC response (tx_count, proposer)
- Add /health endpoint alias to exchange API (in addition to /api/health)
- Simplify genesis block initialization in training script (skip redundant checks)
This commit is contained in:
aitbc
2026-05-04 09:37:00 +02:00
parent 06f93900c5
commit fdf203eb8b
4 changed files with 13 additions and 32 deletions

View File

@@ -20,6 +20,7 @@ def register(subparsers: argparse._SubParsersAction, ctx: ParserContext) -> None
blockchain_block_parser = blockchain_subparsers.add_parser("block", help="Inspect a block")
blockchain_block_parser.add_argument("number", nargs="?", type=int)
blockchain_block_parser.add_argument("--chain-id", help="Chain ID for the block")
blockchain_block_parser.add_argument("--rpc-url", default=ctx.default_rpc_url)
blockchain_block_parser.set_defaults(handler=ctx.handle_blockchain_block)