Add network command live RPC integration with multi-node probing and blockchain.env configuration
Some checks failed
Security Scanning / security-scan (push) Has been cancelled
CLI Tests / test-cli (push) Has been cancelled

- Add read_blockchain_env helper to parse /etc/aitbc/blockchain.env configuration
- Add normalize_rpc_url helper to parse and normalize RPC endpoint URLs
- Add probe_rpc_node to query /health and /rpc/head endpoints with latency tracking
- Add get_network_snapshot to probe local node and p2p_peers from config
- Update network status to show real connected node count and sync status
- Update network peers to show actual peer endpoints and connection
This commit is contained in:
aitbc
2026-04-14 13:31:10 +02:00
parent ffd05769df
commit dab867499c
3 changed files with 178 additions and 18 deletions

View File

@@ -39,6 +39,9 @@
"tests/test_cli_comprehensive.py::TestMarketplaceCommand::test_marketplace_help",
"tests/test_cli_comprehensive.py::TestMarketplaceCommand::test_marketplace_legacy_alias",
"tests/test_cli_comprehensive.py::TestMarketplaceCommand::test_marketplace_list",
"tests/test_cli_comprehensive.py::TestNetworkCommand::test_network_ping_flag_alias",
"tests/test_cli_comprehensive.py::TestNetworkCommand::test_network_ping_positional_node",
"tests/test_cli_comprehensive.py::TestNetworkCommand::test_network_propagate_flag_alias",
"tests/test_cli_comprehensive.py::TestPerformance::test_command_startup_time",
"tests/test_cli_comprehensive.py::TestPerformance::test_help_response_time",
"tests/test_cli_comprehensive.py::TestResourceCommand::test_resource_help",