Files
aitbc/SCRIPTS_UPDATE_SUMMARY.md
aitbc 893ac594b0
All checks were successful
Integration Tests / test-service-integration (push) Successful in 49s
Documentation Validation / validate-docs (push) Successful in 15s
Security Scanning / security-scan (push) Successful in 1m15s
Python Tests / test-python (push) Successful in 1m18s
fix: correct transaction field mapping and standardize genesis path resolution in PoA consensus
🔧 Transaction Field Mapping:
• Change sender field from "sender" to "from" in transaction parsing
• Change recipient field from nested "payload.to" to direct "to"
• Change value field from nested "payload.amount" to direct "amount"
• Align transaction structure with RPC endpoint format

📁 Genesis File Path Resolution:
• Use standardized /var/lib/aitbc/data/{chain_id}/genesis.json path
• Remove
2026-03-30 08:13:57 +02:00

37 lines
1.3 KiB
Markdown

# AITBC Workflow Scripts Update Summary
## Updated Scripts for aitbc Node
### Core Scripts Fixed:
1. **03_follower_node_setup.sh** - Fixed configuration paths
2. **04_create_wallet.sh** - Updated to use local aitbc-cli instead of SSH
3. **06_final_verification.sh** - Removed SSH dependencies, uses local RPC
4. **09_transaction_manager.sh** - Updated RPC endpoints and wallet paths
### Key Changes Made:
- ✅ Replaced SSH commands with local operations
- ✅ Updated CLI paths from `/opt/aitbc/cli/simple_wallet.py` to `/opt/aitbc/aitbc-cli`
- ✅ Fixed RPC endpoints from `/rpc/getBalance` to `/rpc/accounts`
- ✅ Updated keystore paths from `/opt/aitbc/apps/blockchain-node/keystore` to `/var/lib/aitbc/keystore`
- ✅ Fixed configuration file references from `blockchain.env` to `.env`
- ✅ Added graceful error handling for missing SSH connections
### Scripts Ready to Use:
```bash
# Test wallet creation
/opt/aitbc/scripts/workflow/04_create_wallet.sh
# Test transaction sending
/opt/aitbc/scripts/workflow/09_transaction_manager.sh
# Test final verification
WALLET_ADDR="your-wallet-address" /opt/aitbc/scripts/workflow/06_final_verification.sh
```
## Benefits:
- 🚀 No SSH dependency issues
- 🔧 Uses correct local paths
- 📱 Uses updated aitbc-cli alias
- 🛡️ Better error handling
- ⚡ Faster execution (local operations)