#!/usr/bin/env bash
# Start all validators for Computer 2 (Validators 5-8)

set -e

SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
GREEN='\033[0;32m'
BLUE='\033[0;34m'
YELLOW='\033[1;33m'
NC='\033[0m'

echo -e "${BLUE}═══════════════════════════════════════════════════════${NC}"
echo -e "${BLUE}   Beta Testnet - Computer 2 (Validators 5-8)${NC}"
echo -e "${BLUE}═══════════════════════════════════════════════════════${NC}"
echo ""

for i in 5 6 7 8; do
    echo -e "${GREEN}Starting Validator $i...${NC}"
    "$SCRIPT_DIR/start-beta-validator-$i.sh"
    echo ""
    sleep 3
done

echo -e "${GREEN}✅ All 4 validators started!${NC}"
echo ""
echo "Logs:"
for i in 5 6 7 8; do
    echo "  Validator $i: tail -f /tmp/beta-validator-$i.log"
done
