Files
pezkuwi-validator-v1.0.0/scripts/status.sh
T
pezkuwichain 00acf52e7e feat: Upgrade to validator v2.0.0 with beta testnet real keys
Major upgrade from v1.0.0 to v2.0.0 with complete restructure:

Features:
- One-command validator setup (setup.sh)
- Automated dependency checking (Git, Rust, Node.js, build tools, Nginx)
- Shared Pezkuwi-SDK build (single build for all validators)
- Single DKSweb frontend with auto-update from GitHub
- 8 beta testnet validators (corrected from 10)
- Real validator keys from currently running beta testnet
- Helper scripts (start.sh, stop.sh, status.sh, logs.sh)
- Systemd service management
- Nginx-based frontend deployment
- Comprehensive README with usage instructions

Structure:
- validators/validator1-8/ - Individual validator configurations
- Each validator has real keys (BABE, GRANDPA, PARA, ASGN, AUDI, BEEF)
- Port allocation: RPC 9944-9951, P2P 30333-30340
- Validator 1 acts as bootnode

Breaking Changes:
- Removed docker support
- Removed old installation scripts (linux/windows)
- Removed LICENSE file
- Complete restructure of directory layout

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-05 12:06:20 +03:00

36 lines
1.0 KiB
Bash
Executable File

#!/bin/bash
# Status checker script
# Usage: ./status.sh [validator_number]
GREEN='\033[0;32m'
RED='\033[0;31m'
YELLOW='\033[1;33m'
BLUE='\033[0;34m'
NC='\033[0m'
if [ -z "$1" ]; then
# Show status of all validators
echo -e "${BLUE}=== Pezkuwi Validators Status ===${NC}\n"
for i in {1..10}; do
if systemctl list-units --full -all | grep -q "pezkuwi-validator-$i.service"; then
if sudo systemctl is-active --quiet pezkuwi-validator-$i; then
echo -e "Validator $i: ${GREEN}● Running${NC}"
else
echo -e "Validator $i: ${RED}○ Stopped${NC}"
fi
fi
done
echo -e "\n${BLUE}=== Frontend Status ===${NC}"
if sudo systemctl is-active --quiet nginx; then
echo -e "Nginx: ${GREEN}● Running${NC}"
else
echo -e "Nginx: ${RED}○ Stopped${NC}"
fi
else
VALIDATOR_NUM=$1
echo -e "${BLUE}=== Validator $VALIDATOR_NUM Status ===${NC}\n"
sudo systemctl status pezkuwi-validator-$VALIDATOR_NUM
fi