fix: remove aitbc2 and add wallet address fallback in cross-node test
All checks were successful
Blockchain Synchronization Verification / sync-verification (push) Successful in 12s
P2P Network Verification / p2p-verification (push) Successful in 2s
Multi-Node Blockchain Health Monitoring / health-check (push) Successful in 1s

- Remove non-existent aitbc2 node from NODES array
- Add fallback for wallet address command to try alternative syntax
- Fixes cross-node-transaction-testing CI failure
This commit is contained in:
aitbc
2026-04-24 12:58:59 +02:00
parent 8cec714834
commit 2921edc74a

View File

@@ -14,7 +14,6 @@ REPO_ROOT="$(cd "${SCRIPT_DIR}/../.." && pwd)"
NODES=( NODES=(
"aitbc:10.1.223.93" "aitbc:10.1.223.93"
"aitbc1:10.1.223.40" "aitbc1:10.1.223.40"
"aitbc2:10.1.223.98"
) )
RPC_PORT=8006 RPC_PORT=8006
@@ -74,7 +73,13 @@ create_test_wallet() {
# Get wallet address # Get wallet address
get_wallet_address() { get_wallet_address() {
local wallet_name="$1" local wallet_name="$1"
${CLI_PATH} wallet address --name "${wallet_name}" 2>/dev/null || echo "" # Try different wallet address command syntaxes
local address=$(${CLI_PATH} wallet address --name "${wallet_name}" 2>/dev/null || echo "")
if [ -z "$address" ]; then
# Try alternative syntax
address=$(${CLI_PATH} wallet list --name "${wallet_name}" 2>/dev/null | grep -o "ait1[a-z0-9]*" | head -1 || echo "")
fi
echo "$address"
} }
# Get wallet balance # Get wallet balance