From 6db8628c262a3b90a274bc88fcac50a3ecdc8e06 Mon Sep 17 00:00:00 2001 From: aitbc Date: Mon, 20 Apr 2026 20:35:18 +0200 Subject: [PATCH] fix: correct chain ID parsing regex in sync verification - Fix regex to extract actual chain ID value from supported_chains array - Previously extracted 'supported_chains' field name instead of value - Now correctly extracts chain ID from ["ait-devnet"] format --- scripts/multi-node/sync-verification.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/multi-node/sync-verification.sh b/scripts/multi-node/sync-verification.sh index 9403f1f8..4d143c53 100755 --- a/scripts/multi-node/sync-verification.sh +++ b/scripts/multi-node/sync-verification.sh @@ -72,7 +72,7 @@ get_chain_id() { local node_ip="$1" # Get chain ID from /health endpoint - chain_id=$(curl -s --max-time 5 "http://${node_ip}:${RPC_PORT}/health" 2>/dev/null | grep -o '"supported_chains":\["[^"]*"\]' | grep -o '"[^"]*"' | head -1 | tr -d '"' || echo "") + chain_id=$(curl -s --max-time 5 "http://${node_ip}:${RPC_PORT}/health" 2>/dev/null | grep -o '"supported_chains":\["[^"]*"\]' | grep -o '\["[^"]*"\]' | grep -o '[^"\[\]]*' || echo "") if [ -z "$chain_id" ]; then # Try alternative endpoint