Some checks failed
Deploy to Phoenix / deploy (push) Has been cancelled
- ADD_CHAIN138_TO_LEDGER_LIVE: Ledger form done; public code review repo bis-innovations/LedgerLive; init/push commands - CONTRACT_DEPLOYMENT_RUNBOOK: Chain 138 gas price 1 gwei, 36-addr check, TransactionMirror workaround - CONTRACT_*: AddressMapper, MirrorManager deployed 2026-02-12; 36-address on-chain check - NEXT_STEPS_FOR_YOU: Ledger done; steps completable now (no LAN); run-completable-tasks-from-anywhere - MASTER_INDEX, OPERATOR_OPTIONAL, SMART_CONTRACTS_INVENTORY_SIMPLE: updates - LEDGER_BLOCKCHAIN_INTEGRATION_COMPLETE: bis-innovations/LedgerLive reference Co-authored-by: Cursor <cursoragent@cursor.com>
36 lines
1.3 KiB
Bash
Executable File
36 lines
1.3 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# Remove tx-pool-min-score from validator configs (unsupported in some Besu versions).
|
|
# Then restart besu-validator on 1000-1004. Run from repo root; needs SSH to .10 and .11.
|
|
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
PROJECT_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
|
|
[ -f "$PROJECT_ROOT/config/ip-addresses.conf" ] && source "$PROJECT_ROOT/config/ip-addresses.conf" 2>/dev/null || true
|
|
|
|
R630_01="${PROXMOX_R630_01:-192.168.11.11}"
|
|
ML110="${PROXMOX_ML110:-192.168.11.10}"
|
|
USER="${PROXMOX_USER:-root}"
|
|
|
|
VALIDATORS=( "1000:$R630_01" "1001:$R630_01" "1002:$R630_01" "1003:$ML110" "1004:$ML110" )
|
|
FAILED=0
|
|
|
|
for entry in "${VALIDATORS[@]}"; do
|
|
IFS=: read -r vmid host <<< "$entry"
|
|
echo "[$vmid @ $host] Removing tx-pool-min-score and restarting..."
|
|
if ssh -o ConnectTimeout=5 -o StrictHostKeyChecking=no "$USER@$host" "pct exec $vmid -- bash -c '
|
|
CFG=/etc/besu/config-validator.toml
|
|
[ -f /config/config-validator.toml ] && CFG=/config/config-validator.toml
|
|
[ ! -f \"\$CFG\" ] && exit 1
|
|
sed -i \"/^tx-pool-min-score=/d\" \"\$CFG\" 2>/dev/null || true
|
|
systemctl restart besu-validator
|
|
'" 2>/dev/null; then
|
|
echo " OK"
|
|
else
|
|
echo " FAIL"
|
|
((FAILED++)) || true
|
|
fi
|
|
done
|
|
|
|
[ "$FAILED" -eq 0 ] && echo "Done. Wait 1-2 min then: bash scripts/monitoring/monitor-blockchain-health.sh" || exit 1
|