fix: correct transaction field mapping and standardize genesis path resolution in PoA consensus
All checks were successful
All checks were successful
🔧 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:
18
scripts/test_workflow.sh
Executable file
18
scripts/test_workflow.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
# Test Updated Workflow Scripts
|
||||
echo "=== Testing Updated Workflow Scripts ==="
|
||||
|
||||
echo "1. Testing wallet creation script..."
|
||||
/opt/aitbc/scripts/workflow/04_create_wallet.sh
|
||||
|
||||
echo ""
|
||||
echo "2. Testing final verification script..."
|
||||
export WALLET_ADDR=$(/opt/aitbc/aitbc-cli balance --name aitbc-user 2>/dev/null | grep "Address:" | awk '{print $2}' || echo "")
|
||||
/opt/aitbc/scripts/workflow/06_final_verification.sh
|
||||
|
||||
echo ""
|
||||
echo "3. Testing transaction manager script..."
|
||||
/opt/aitbc/scripts/workflow/09_transaction_manager.sh
|
||||
|
||||
echo ""
|
||||
echo "✅ All script tests completed!"
|
||||
Reference in New Issue
Block a user