Files
aitbc/docs/advanced/01_blockchain/2_configuration.md
aitbc bc942c0ff9 docs: update documentation to reflect new port assignments
Documentation Port Update - Complete:
 DOCUMENTATION UPDATED: All documentation now reflects current port assignments
- docs/advanced/01_blockchain/2_configuration.md: Updated AI Service port from 8009 to 8015
- docs/reference/PORT_MAPPING_GUIDE.md: Created comprehensive port mapping guide
- Reason: Documentation now synchronized with actual service configurations

 PORT MAPPING GUIDE CREATED:
📋 Complete Service Overview: All 16 services with current ports
🔧 Core Services (8000-8009): 6 services + blockchain RPC
🚀 AI/Agent/GPU Services (8010-8019): 6 services
📊 Other Services (8020-8029): 2 services
📚 Configuration Files: Service file locations for each port
🎯 Health Check Commands: Complete testing commands
📋 Port Usage Summary: Statistics and availability

 DOCUMENTATION IMPROVEMENTS:
 Current Information: All ports reflect actual service configurations
 Complete Coverage: Every service documented with correct port
 Health Check Guide: Commands for testing each service
 Configuration Reference: File locations for port changes
 Strategy Documentation: Port allocation strategy explained

 SYNCHRONIZATION ACHIEVED:
 Health Check Script: Matches service configurations
 Service Files: All updated to match documentation
 Documentation: Reflects actual port assignments
 Complete Consistency: No mismatches across system

 PORT ORGANIZATION DOCUMENTED:
 Sequential Assignment: Services use sequential ports within ranges
 Functional Grouping: Services grouped by purpose
 Available Ports: Clear listing of free ports
 Migration History: Recent port changes documented

 USER BENEFITS:
 Easy Reference: Single source of truth for port information
 Testing Guide: Commands for service health verification
 Configuration Help: File locations for port modifications
 Strategy Understanding: Clear port allocation rationale

RESULT: Successfully updated all documentation to reflect the new port assignments. Created a comprehensive PORT_MAPPING_GUIDE.md that serves as the definitive reference for all AITBC service ports. Documentation is now perfectly synchronized with service configurations, providing users with accurate and complete port information.
2026-03-30 18:33:05 +02:00

88 lines
1.5 KiB
Markdown

# Blockchain Node Configuration
Configure your blockchain node for optimal performance.
## Configuration File
Location: `~/.aitbc/chain.yaml`
## Node Configuration
```yaml
node:
name: my-node
network: ait-devnet # or ait-mainnet
data_dir: /opt/blockchain-node/data
log_level: info
```
## RPC Configuration
```yaml
rpc:
enabled: true
bind_host: 0.0.0.0
bind_port: 8080
cors_origins:
- http://localhost:8015
- http://localhost:8000
rate_limit: 1000 # requests per minute
```
## P2P Configuration
```yaml
p2p:
enabled: true
bind_host: 0.0.0.0
bind_port: 7070
bootstrap_nodes:
- /dns4/node-1.aitbc.com/tcp/7070/p2p/...
max_peers: 50
min_peers: 5
```
## Mempool Configuration
```yaml
mempool:
backend: database # or memory
max_size: 10000
min_fee: 0
eviction_interval: 60
```
## Database Configuration
```yaml
database:
adapter: postgresql # or sqlite
url: postgresql://user:pass@localhost/aitbc_chain
pool_size: 10
max_overflow: 20
```
## Validator Configuration
```yaml
validator:
enabled: true
key: <VALIDATOR_PRIVATE_KEY>
block_time: 2 # seconds
max_block_size: 1000000 # bytes
max_txs_per_block: 500
```
## Environment Variables
```bash
export AITBC_CHAIN_DATA_DIR=/opt/blockchain-node/data
export AITBC_CHAIN_RPC_PORT=8080
export AITBC_CHAIN_P2P_PORT=7070
```
## Next
- [Quick Start](./1_quick-start.md) — Get started
- [Operations](./3_operations.md) — Day-to-day ops
- [Consensus](./4_consensus.md) — Consensus mechanism