dc9863afec5b9a2435e897ef23929792934a4afd
Fixed hardcoded IP addresses in production code by replacing them with environment variables or config settings: - apps/blockchain-node/src/aitbc_chain/sync_cli.py: Use AITBC_SYNC_SOURCE and AITBC_SYNC_IMPORT_URL env vars for RPC URLs - apps/blockchain-node/src/aitbc_chain/app.py: Use AITBC_TRUSTED_IPS env var for rate limiting bypass - apps/coordinator-api/src/app/routers/client.py: Use settings.blockchain_rpc_url for RPC endpoint - dev/scripts/dev_heartbeat.py: Use AITBC_LOCAL_RPC and AITBC_GENESIS_RPC env vars for RPC URLs - cli/aitbc_cli.py: Use AITBC_FOLLOWER_HOST and AITBC_FOLLOWER_PORT env vars for network peer display This makes the codebase more portable and configurable for different deployment environments.
AITBC - Advanced Intelligence Training Blockchain Consortium
Implemented Features
Blockchain Infrastructure
- Multi-chain support with chain isolation
- PoA consensus with configurable validators
- Adaptive sync with tiered batch sizing (10K+ blocks: 500-1000 batch)
- Hybrid block generation with skip empty blocks and 60s heartbeat
- Force sync for manual blockchain synchronization
- Chain export/import for backup and recovery
- State root computation and validation
- Gossip network with Redis backend
- NAT traversal with STUN-based public endpoint discovery
- Multi-node federation with independent islands and hub discovery
AI & Agent Systems
- OpenClaw agent communication with blockchain integration
- AI engine for autonomous agent operations
- Agent services including registry, compliance, protocols, and trading
- Agent daemon with systemd integration
- Cross-node agent messaging support
Marketplace & Exchange
- GPU marketplace for compute resources
- Exchange platform with cross-chain trading
- Trading engine for order matching
- Pool hub for resource pooling
- Marketplace-blockchain payment integration
CLI & Tools
- Unified CLI with 50+ command groups
- 100% test coverage for CLI commands
- Modular handler architecture for extensibility
- Bridge commands for blockchain event bridging
- Account management commands
Security & Monitoring
- JWT authentication with role-based access control
- Multi-sig wallets with time-lock support
- Prometheus metrics and alerting
- SLA tracking and compliance monitoring
- Encrypted keystores for secure key management
Testing & CI/CD
- Comprehensive test suite with 100% success rate
- Standardized venv caching with corruption detection
- Automated CI/CD with Gitea workflows
- Security scanning optimized for changed files
- Cross-node verification tests
Documentation
- Complete documentation with learning paths
- 10/10 quality score with standardized templates
- Master index for quick navigation
- Release notes with version history
Documentation
- Master Index - Complete catalog of all documentation files and directories
- Main Documentation - Project status, navigation guide, and learning paths
- Setup Instructions - Installation and configuration guide
Languages
Python
69%
Shell
16.4%
JavaScript
5.8%
TypeScript
5.5%
Assembly
1%
Other
2.2%