Files
proxmox/scripts/lib/chain138-lan-rpc-inventory.sh
defiQUG dbd517b279 Sync workspace: config, docs, scripts, CI, operator rules, and submodule pointers.
- 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
2026-04-12 06:12:20 -07:00

38 lines
1.4 KiB
Bash
Executable File

#!/usr/bin/env bash
# Chain 138 — LAN HTTP RPC fleet (VMID|IP|min_peers) for health + nonce/gas parity scripts.
# Source after config/ip-addresses.conf (or expect defaults below).
# Not intended to be executed directly.
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "chain138-lan-rpc-inventory.sh: source from another script, do not execute." >&2
exit 1
fi
#
# Env:
# RPC_MIN_PEERS — default minimum peer count (default 10) for most nodes
# CHAIN138_RPC_MIN_PEERS_2103 — hard gate for VMID 2103 Thirdweb admin core (default 3; may run lighter P2P mesh while head stays aligned)
# CHAIN138_RPC_WARN_PEERS_2103 — soft warning if peers are below this but still ≥ min (default 6)
# shellcheck disable=SC2034
_mrp="${RPC_MIN_PEERS:-10}"
_m2103="${CHAIN138_RPC_MIN_PEERS_2103:-3}"
CHAIN138_LAN_RPC_ROWS=(
"2101|${IP_BESU_RPC_CORE_1:-192.168.11.211}|${_mrp}"
"2102|${IP_BESU_RPC_CORE_2:-192.168.11.212}|${_mrp}"
"2103|${RPC_THIRDWEB_ADMIN_CORE:-192.168.11.217}|${_m2103}"
"2201|${IP_BESU_RPC_PUBLIC_1:-192.168.11.221}|${_mrp}"
"2301|${IP_BESU_RPC_PRIVATE_1:-192.168.11.232}|${_mrp}"
"2303|192.168.11.233|${_mrp}"
"2304|192.168.11.234|${_mrp}"
"2305|192.168.11.235|${_mrp}"
"2306|192.168.11.236|${_mrp}"
"2307|192.168.11.237|${_mrp}"
"2308|192.168.11.238|${_mrp}"
"2400|192.168.11.240|${_mrp}"
"2401|192.168.11.241|${_mrp}"
"2402|192.168.11.242|${_mrp}"
"2403|192.168.11.243|${_mrp}"
)
unset _mrp _m2103