Files
aitbc/.windsurf/workflows/MULTI_NODE_MASTER_INDEX.md
aitbc 3e1b651798 feat: implement modular workflow structure for multi-node blockchain
BREAKING CHANGE: Split 64KB monolithic workflow into 6 focused modules

New Modular Structure:
- MULTI_NODE_MASTER_INDEX.md: Central navigation hub for all modules
- multi-node-blockchain-setup-core.md: Essential setup steps and basic configuration
- multi-node-blockchain-operations.md: Daily operations, monitoring, troubleshooting
- multi-node-blockchain-advanced.md: Smart contracts, security testing, performance optimization
- multi-node-blockchain-production.md: Production deployment, security hardening, scaling
- multi-node-blockchain-marketplace.md: Marketplace testing, GPU provider testing, AI operations
- multi-node-blockchain-reference.md: Configuration reference, verification commands, best practices

Benefits Achieved:
 Improved Maintainability: Each module focuses on specific functionality
 Enhanced Usability: Users can load only needed modules
 Better Documentation: Each module has focused troubleshooting guides
 Clear Dependencies: Explicit module relationships and learning paths
 Better Searchability: Find relevant information faster

Migration Features:
- Original 64KB workflow (2,098 lines) deprecated but preserved
- Clear migration guide with section mapping
- Master index provides navigation by task, role, and complexity
- Cross-references between all modules
- Quick start commands for each module

Learning Paths:
- New Users: Core → Operations → Reference
- System Administrators: Core → Operations → Advanced → Reference
- Production Engineers: Core → Operations → Advanced → Production → Reference
- AI Engineers: Core → Operations → Advanced → Marketplace → Reference

Technical Improvements:
- Reduced file complexity from 2,098 lines to ~300 lines per module
- Module-specific troubleshooting tables and command references
- Focused prerequisite chains and dependency management
- Production-ready configurations and security hardening
- Comprehensive AI operations and marketplace testing

Files:
- New: 6 focused workflow modules + master index
- Updated: Original monolithic workflow (deprecated with migration guide)
- Preserved: All existing functionality in modular format
- Added: Cross-references, learning paths, and quick navigation
2026-03-30 16:08:37 +02:00

12 KiB

description, title, version
description title version
Master index for multi-node blockchain setup - links to all modules and provides navigation Multi-Node Blockchain Setup - Master Index 1.0

Multi-Node Blockchain Setup - Master Index

This master index provides navigation to all modules in the multi-node AITBC blockchain setup documentation. Each module focuses on specific aspects of the deployment and operation.

📚 Module Overview

🏗️ Core Setup Module

File: multi-node-blockchain-setup-core.md Purpose: Essential setup steps for two-node blockchain network Audience: New deployments, initial setup Prerequisites: None (base module)

Key Topics:

  • Prerequisites and pre-flight setup
  • Environment configuration
  • Genesis block architecture
  • Basic node setup (aitbc + aitbc1)
  • Wallet creation and funding
  • Cross-node transactions

Quick Start:

# Run core setup
/opt/aitbc/scripts/workflow/02_genesis_authority_setup.sh
ssh aitbc1 '/opt/aitbc/scripts/workflow/03_follower_node_setup.sh'

🔧 Operations Module

File: multi-node-blockchain-operations.md Purpose: Daily operations, monitoring, and troubleshooting Audience: System administrators, operators Prerequisites: Core Setup Module

Key Topics:

  • Service management and health monitoring
  • Daily operations and maintenance
  • Performance monitoring and optimization
  • Troubleshooting common issues
  • Backup and recovery procedures
  • Security operations

Quick Start:

# Check system health
systemctl status aitbc-blockchain-node.service aitbc-blockchain-rpc.service
python3 /tmp/aitbc1_heartbeat.py

🚀 Advanced Features Module

File: multi-node-blockchain-advanced.md Purpose: Advanced blockchain features and testing Audience: Advanced users, developers Prerequisites: Core Setup + Operations Modules

Key Topics:

  • Smart contract deployment and testing
  • Security testing and hardening
  • Performance optimization
  • Advanced monitoring and analytics
  • Consensus testing and validation
  • Event monitoring and data analytics

Quick Start:

# Deploy smart contract
./aitbc-cli contract deploy --name "AgentMessagingContract" --wallet genesis-ops

🏭 Production Module

File: multi-node-blockchain-production.md Purpose: Production deployment, security, and scaling Audience: Production engineers, DevOps Prerequisites: Core Setup + Operations + Advanced Modules

Key Topics:

  • Production readiness and security hardening
  • Monitoring, alerting, and observability
  • Scaling strategies and load balancing
  • CI/CD integration and automation
  • Disaster recovery and backup procedures

Quick Start:

# Production deployment
sudo systemctl enable aitbc-blockchain-node-production.service
sudo systemctl start aitbc-blockchain-node-production.service

🛒 Marketplace Module

File: multi-node-blockchain-marketplace.md Purpose: Marketplace testing and AI operations Audience: Marketplace operators, AI service providers Prerequisites: Core Setup + Operations + Advanced + Production Modules

Key Topics:

  • Marketplace setup and service creation
  • GPU provider testing and resource allocation
  • AI operations and job management
  • Transaction tracking and verification
  • Performance testing and optimization

Quick Start:

# Create marketplace service
./aitbc-cli marketplace --action create --name "AI Service" --price 100 --wallet provider

📖 Reference Module

File: multi-node-blockchain-reference.md Purpose: Configuration reference and verification commands Audience: All users (reference material) Prerequisites: None (independent reference)

Key Topics:

  • Configuration overview and parameters
  • Verification commands and health checks
  • System overview and architecture
  • Success metrics and KPIs
  • Best practices and troubleshooting guide

Quick Start:

# Quick health check
./aitbc-cli chain && ./aitbc-cli network

🗺️ Module Dependencies

Core Setup (Foundation)
├── Operations (Daily Management)
├── Advanced Features (Complex Operations)
├── Production (Production Deployment)
│   └── Marketplace (AI Operations)
└── Reference (Independent Guide)

For New Users

  1. Core Setup Module - Learn basic deployment
  2. Operations Module - Master daily operations
  3. Reference Module - Keep as guide

For System Administrators

  1. Core Setup Module - Understand deployment
  2. Operations Module - Master operations
  3. Advanced Features Module - Learn advanced topics
  4. Reference Module - Keep as reference

For Production Engineers

  1. Core Setup Module - Understand basics
  2. Operations Module - Master operations
  3. Advanced Features Module - Learn advanced features
  4. Production Module - Master production deployment
  5. Marketplace Module - Learn AI operations
  6. Reference Module - Keep as reference

For AI Service Providers

  1. Core Setup Module - Understand blockchain
  2. Operations Module - Master operations
  3. Advanced Features Module - Learn smart contracts
  4. Marketplace Module - Master AI operations
  5. Reference Module - Keep as reference

🎯 Quick Navigation

By Task

Task Recommended Module
Initial Setup Core Setup
Daily Operations Operations
Troubleshooting Operations + Reference
Security Hardening Advanced Features + Production
Performance Optimization Advanced Features
Production Deployment Production
AI Operations Marketplace
Configuration Reference Reference

By Role

Role Essential Modules
Blockchain Developer Core Setup, Advanced Features, Reference
System Administrator Core Setup, Operations, Reference
DevOps Engineer Core Setup, Operations, Production, Reference
AI Engineer Core Setup, Operations, Marketplace, Reference
Security Engineer Advanced Features, Production, Reference

By Complexity

Level Modules
Beginner Core Setup, Operations
Intermediate Advanced Features, Reference
Advanced Production, Marketplace
Expert All modules

🔍 Quick Reference Commands

Essential Commands (From Core Module)

# Basic health check
curl -s http://localhost:8006/health | jq .

# Check blockchain height
curl -s http://localhost:8006/rpc/head | jq .height

# List wallets
./aitbc-cli list

# Send transaction
./aitbc-cli send --from wallet1 --to wallet2 --amount 100 --password 123

Operations Commands (From Operations Module)

# Service status
systemctl status aitbc-blockchain-node.service aitbc-blockchain-rpc.service

# Comprehensive health check
python3 /tmp/aitbc1_heartbeat.py

# Monitor sync
watch -n 10 'curl -s http://localhost:8006/rpc/head | jq .height'

Advanced Commands (From Advanced Module)

# Deploy smart contract
./aitbc-cli contract deploy --name "ContractName" --wallet genesis-ops

# Test security
nmap -sV -p 8006,7070 localhost

# Performance test
./aitbc-cli contract benchmark --name "ContractName" --operations 1000

Production Commands (From Production Module)

# Production services
sudo systemctl status aitbc-blockchain-node-production.service

# Backup database
sudo cp /var/lib/aitbc/data/ait-mainnet/chain.db /var/backups/aitbc/

# Monitor with Prometheus
curl -s http://localhost:9090/metrics

Marketplace Commands (From Marketplace Module)

# Create service
./aitbc-cli marketplace --action create --name "Service" --price 100 --wallet provider

# Submit AI job
./aitbc-cli ai-submit --wallet wallet --type inference --prompt "Generate image" --payment 100

# Check resource status
./aitbc-cli resource status

📊 System Overview

Architecture Summary

Two-Node AITBC Blockchain:
├── Genesis Node (aitbc) - Primary development server
├── Follower Node (aitbc1) - Secondary node
├── RPC Services (port 8006) - API endpoints
├── P2P Network (port 7070) - Node communication
├── Gossip Network (Redis) - Data propagation
├── Smart Contracts - On-chain logic
├── AI Operations - Job processing and marketplace
└── Monitoring - Health checks and metrics

Key Components

  • Blockchain Core: Transaction processing and consensus
  • RPC Layer: API interface for external access
  • Smart Contracts: Agent messaging and governance
  • AI Services: Job submission, resource allocation, marketplace
  • Monitoring: Health checks, performance metrics, alerting

🎯 Success Metrics

Deployment Success

  • Both nodes operational and synchronized
  • Cross-node transactions working
  • Smart contracts deployed and functional
  • AI operations and marketplace active
  • Monitoring and alerting configured

Operational Success

  • Services running with >99% uptime
  • Block production rate: 1 block/10s
  • Transaction confirmation: <10s
  • Network latency: <50ms
  • Resource utilization: <80%

Production Success

  • Security hardening implemented
  • Backup and recovery procedures tested
  • Scaling strategies validated
  • CI/CD pipeline operational
  • Disaster recovery verified

🔧 Troubleshooting Quick Reference

Common Issues

Issue Module Solution
Services not starting Core Setup Check configuration, permissions
Nodes out of sync Operations Check network, restart services
Transactions stuck Advanced Check mempool, proposer status
Performance issues Production Check resources, optimize database
AI jobs failing Marketplace Check resources, wallet balance

Emergency Procedures

  1. Service Recovery: Restart services, check logs
  2. Network Recovery: Check connectivity, restart networking
  3. Database Recovery: Restore from backup
  4. Security Incident: Check logs, update security

📚 Additional Resources

Documentation Files

  • AI Operations Reference: openclaw-aitbc/ai-operations-reference.md
  • Agent Templates: openclaw-aitbc/agent-templates.md
  • Workflow Templates: openclaw-aitbc/workflow-templates.md
  • Setup Scripts: openclaw-aitbc/setup.sh

External Resources

  • AITBC Repository: GitHub repository
  • API Documentation: /opt/aitbc/docs/api/
  • Developer Guide: /opt/aitbc/docs/developer/

🔄 Version History

v1.0 (Current)

  • Split monolithic workflow into 6 focused modules
  • Added comprehensive navigation and cross-references
  • Created learning paths for different user types
  • Added quick reference commands and troubleshooting

Previous Versions

  • Monolithic Workflow: multi-node-blockchain-setup.md (64KB, 2,098 lines)
  • OpenClaw Integration: multi-node-blockchain-setup-openclaw.md

🤝 Contributing

Updating Documentation

  1. Update specific module files
  2. Update this master index if needed
  3. Update cross-references between modules
  4. Test all links and commands
  5. Commit changes with descriptive message

Module Creation

  1. Follow established template structure
  2. Include prerequisites and dependencies
  3. Add quick start commands
  4. Include troubleshooting section
  5. Update this master index

Note: This master index is your starting point for all multi-node blockchain setup operations. Choose the appropriate module based on your current task and expertise level.

For immediate help, see the Reference Module for comprehensive commands and troubleshooting guidance.