Files
aitbc/dev/tests/run_mc_test.sh
oib ccedbace53 chore: remove configuration files and enhance blockchain explorer with advanced search, analytics, and export features
- Delete .aitbc.yaml.example CLI configuration template
- Delete .lycheeignore link checker exclusion rules
- Delete .nvmrc Node.js version specification
- Add advanced search panel with filters for address, amount range, transaction type, time range, and validator
- Add analytics dashboard with transaction volume, active addresses, and block time metrics
- Add Chart.js integration
2026-03-02 15:38:25 +01:00

27 lines
1.1 KiB
Bash
Executable File

#!/bin/bash
echo "=== Multi-Chain Capability Test ==="
echo ""
echo "1. Verify Health (Supported Chains):"
curl -s "http://127.0.0.1:8000/v1/health" | jq '{status: .status, supported_chains: .supported_chains}'
echo ""
echo "2. Submitting test transaction to ait-testnet:"
curl -s -X POST "http://127.0.0.1:8082/rpc/sendTx?chain_id=ait-testnet" -H "Content-Type: application/json" -d '{"sender":"test_mc","recipient":"test_mc2","payload":{"test":true},"nonce":1,"fee":0,"type":"TRANSFER"}' | jq .
echo ""
echo "3. Waiting 3 seconds for block production..."
sleep 3
echo ""
echo "4. Checking head of ait-testnet on aitbc (Primary):"
ssh aitbc-cascade "curl -s \"http://127.0.0.1:8082/rpc/head?chain_id=ait-testnet\" | jq ."
echo ""
echo "5. Checking head of ait-testnet on aitbc1 (Secondary):"
ssh aitbc1-cascade "curl -s \"http://127.0.0.1:8082/rpc/head?chain_id=ait-testnet\" | jq ."
echo ""
echo "6. Checking head of ait-devnet on aitbc (Should be 0 if no txs since genesis fixed):"
ssh aitbc-cascade "curl -s \"http://127.0.0.1:8082/rpc/head?chain_id=ait-devnet\" | jq ."