- Update dbis_core, cross-chain-pmm-lps, explorer-monorepo, metamask-integration, pr-workspace/chains - Omit embedded publish git dirs and empty placeholders from index Made-with: Cursor
34 lines
1.2 KiB
Bash
Executable File
34 lines
1.2 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# Offline checks for Chain 138 RPC verification scripts (CI-safe).
|
|
# - bash -n on health, parity, monitor, pool clear, inventory
|
|
# - Parity script skipped (LAN-only) unless CHAIN138_RPC_PARITY_SKIP=0 and RPC reachable
|
|
#
|
|
# Usage: bash scripts/verify/self-test-chain138-rpc-verify.sh
|
|
|
|
set -euo pipefail
|
|
|
|
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
|
|
cd "$ROOT"
|
|
|
|
check_n() {
|
|
local f="$1"
|
|
bash -n "$f" || { echo "bash -n FAIL: $f" >&2; exit 1; }
|
|
echo "OK bash -n $f"
|
|
}
|
|
|
|
# Inventory is source-only (exits if executed); syntax-check still valid.
|
|
bash -n scripts/lib/chain138-lan-rpc-inventory.sh && echo "OK bash -n scripts/lib/chain138-lan-rpc-inventory.sh"
|
|
|
|
check_n scripts/verify/check-chain138-rpc-health.sh
|
|
check_n scripts/verify/check-chain138-rpc-nonce-gas-parity.sh
|
|
check_n scripts/monitoring/monitor-blockchain-health.sh
|
|
check_n scripts/clear-all-transaction-pools.sh
|
|
check_n scripts/verify/check-pending-transactions-chain138.sh
|
|
|
|
# CI / no LAN: parity must not fail the workflow
|
|
CHAIN138_RPC_PARITY_SKIP=1 bash scripts/verify/check-chain138-rpc-nonce-gas-parity.sh
|
|
echo "OK parity with CHAIN138_RPC_PARITY_SKIP=1"
|
|
|
|
echo ""
|
|
echo "=== self-test-chain138-rpc-verify: all offline checks passed ==="
|