feat: integrate actual blockchain mining with PoA consensus and fix CLI wallet operations
🔗 Mining Integration: • Connect mining RPC endpoints to PoA proposer for real block production • Initialize PoA proposer in app lifespan for mining integration • Add mining status, start, stop, and stats endpoints with blockchain data • Track actual block production rate and mining statistics • Support 1-8 mining threads with proper validation 🔧 PoA Consensus Integration: • Set global PoA proposer reference for mining operations • Start
This commit is contained in:
@@ -8,32 +8,32 @@ echo "=== AITBC Wallet Creation (Enhanced CLI) ==="
|
||||
|
||||
echo "1. Pre-creation verification..."
|
||||
echo "=== Current wallets on aitbc ==="
|
||||
ssh aitbc 'python /opt/aitbc/cli/simple_wallet.py list'
|
||||
ssh aitbc '/opt/aitbc/venv/bin/python /opt/aitbc/cli/simple_wallet.py list'
|
||||
|
||||
echo "2. Creating new wallet on aitbc..."
|
||||
ssh aitbc 'python /opt/aitbc/cli/simple_wallet.py create --name aitbc-user --password-file /var/lib/aitbc/keystore/.password'
|
||||
ssh aitbc '/opt/aitbc/venv/bin/python /opt/aitbc/cli/simple_wallet.py create --name aitbc-user --password-file /var/lib/aitbc/keystore/.password'
|
||||
|
||||
# Get wallet address using CLI
|
||||
WALLET_ADDR=$(ssh aitbc 'python /opt/aitbc/cli/simple_wallet.py balance --name aitbc-user --format json | jq -r ".address"')
|
||||
WALLET_ADDR=$(ssh aitbc '/opt/aitbc/venv/bin/python /opt/aitbc/cli/simple_wallet.py balance --name aitbc-user --format json | jq -r ".address"')
|
||||
echo "New wallet address: $WALLET_ADDR"
|
||||
|
||||
# Verify wallet was created successfully using CLI
|
||||
echo "3. Post-creation verification..."
|
||||
echo "=== Updated wallet list ==="
|
||||
ssh aitbc "python /opt/aitbc/cli/simple_wallet.py list --format json | jq '.[] | select(.name == \"aitbc-user\")'"
|
||||
ssh aitbc "/opt/aitbc/venv/bin/python /opt/aitbc/cli/simple_wallet.py list --format json | jq '.[] | select(.name == \"aitbc-user\")'"
|
||||
|
||||
echo "=== New wallet details ==="
|
||||
ssh aitbc 'python /opt/aitbc/cli/simple_wallet.py balance --name aitbc-user'
|
||||
ssh aitbc '/opt/aitbc/venv/bin/python /opt/aitbc/cli/simple_wallet.py balance --name aitbc-user'
|
||||
|
||||
echo "=== All wallets summary ==="
|
||||
ssh aitbc 'python /opt/aitbc/cli/simple_wallet.py list'
|
||||
ssh aitbc '/opt/aitbc/venv/bin/python /opt/aitbc/cli/simple_wallet.py list'
|
||||
|
||||
echo "4. Cross-node verification..."
|
||||
echo "=== Network status (aitbc1) ==="
|
||||
python /opt/aitbc/cli/simple_wallet.py network
|
||||
/opt/aitbc/venv/bin/python /opt/aitbc/cli/simple_wallet.py network
|
||||
|
||||
echo "=== Network status (aitbc) ==="
|
||||
ssh aitbc 'python /opt/aitbc/cli/simple_wallet.py network'
|
||||
ssh aitbc '/opt/aitbc/venv/bin/python /opt/aitbc/cli/simple_wallet.py network'
|
||||
|
||||
echo "✅ Wallet created successfully using enhanced CLI!"
|
||||
echo "Wallet name: aitbc-user"
|
||||
|
||||
Reference in New Issue
Block a user