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:
@@ -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..."
|
||||
|
||||
Reference in New Issue
Block a user