fix: correct transaction field mapping and standardize genesis path resolution in PoA consensus
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

🔧 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
This commit is contained in:
2026-03-30 08:13:57 +02:00
parent 5775b51969
commit 893ac594b0
9 changed files with 246 additions and 58 deletions

View File

@@ -23,7 +23,7 @@ mkdir -p /var/lib/aitbc/data /var/lib/aitbc/keystore /etc/aitbc /var/log/aitbc
ls -la /var/lib/aitbc/ || echo "Creating /var/lib/aitbc/ structure..."
# Copy and adapt central .env for aitbc (follower node)
cp /etc/aitbc/blockchain.env /etc/aitbc/blockchain.env.aitbc.backup 2>/dev/null || true
cp /etc/aitbc/.env /etc/aitbc/.env.aitbc.backup 2>/dev/null || true
# Update .env for aitbc follower node configuration
echo "4. Updating environment configuration..."