mirror of
https://github.com/pezkuwichain/pezkuwi-validator-v1.0.0.git
synced 2026-04-22 05:27:55 +00:00
00acf52e7e
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>
43 lines
1.2 KiB
Bash
Executable File
43 lines
1.2 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# Logs viewer script
|
|
# Usage: ./logs.sh [validator_number] [lines]
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
VALIDATORS_DIR="$SCRIPT_DIR/../validators"
|
|
|
|
GREEN='\033[0;32m'
|
|
RED='\033[0;31m'
|
|
YELLOW='\033[1;33m'
|
|
BLUE='\033[0;34m'
|
|
NC='\033[0m'
|
|
|
|
if [ -z "$1" ]; then
|
|
echo -e "${RED}Error: Validator number required${NC}"
|
|
echo "Usage: $0 [validator_number] [lines (default: 50)]"
|
|
exit 1
|
|
fi
|
|
|
|
VALIDATOR_NUM=$1
|
|
LINES=${2:-50}
|
|
VALIDATOR_DIR="$VALIDATORS_DIR/validator$VALIDATOR_NUM"
|
|
|
|
echo -e "${BLUE}=== Validator $VALIDATOR_NUM Logs (last $LINES lines) ===${NC}\n"
|
|
|
|
if [ -f "$VALIDATOR_DIR/logs/validator.log" ]; then
|
|
tail -n "$LINES" "$VALIDATOR_DIR/logs/validator.log"
|
|
echo -e "\n${YELLOW}To follow logs in real-time, use:${NC}"
|
|
echo "tail -f $VALIDATOR_DIR/logs/validator.log"
|
|
else
|
|
echo -e "${YELLOW}No logs found. Service may not have started yet.${NC}"
|
|
echo -e "\nTry viewing with journalctl:"
|
|
echo "sudo journalctl -u pezkuwi-validator-$VALIDATOR_NUM -n $LINES"
|
|
fi
|
|
|
|
echo -e "\n${BLUE}=== Error Logs ===${NC}\n"
|
|
if [ -f "$VALIDATOR_DIR/logs/validator-error.log" ]; then
|
|
tail -n "$LINES" "$VALIDATOR_DIR/logs/validator-error.log"
|
|
else
|
|
echo -e "${GREEN}No errors${NC}"
|
|
fi
|