From 5cf70c93d992b0ca818878849851edfac04d3cf9 Mon Sep 17 00:00:00 2001 From: mehmetyavuzz43 <147098445+mehmetyavuzz43@users.noreply.github.com> Date: Tue, 16 Dec 2025 11:30:09 +0100 Subject: [PATCH] tools: add helper to print base node config Adds scripts/print_node_config.sh, a small helper that prints the active client, data directory and key RPC-related environment variables. --- scripts/print_node_config.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 scripts/print_node_config.sh diff --git a/scripts/print_node_config.sh b/scripts/print_node_config.sh new file mode 100644 index 00000000..b51cb1d6 --- /dev/null +++ b/scripts/print_node_config.sh @@ -0,0 +1,24 @@ +#!/usr/bin/env bash +set -euo pipefail + +# Small helper script to print the current Base node configuration +# derived from environment variables and defaults. + +CLIENT="${CLIENT:-geth}" +HOST_DATA_DIR="${HOST_DATA_DIR:-./${CLIENT}-data}" + +echo "Base node configuration:" +echo " Execution client: ${CLIENT}" +echo " Host data directory: ${HOST_DATA_DIR}" + +if [ -n "${OP_NODE_RPC_URL:-}" ]; then + echo " OP_NODE_RPC_URL: ${OP_NODE_RPC_URL}" +else + echo " OP_NODE_RPC_URL: not set" +fi + +if [ -n "${L1_RPC_URL:-}" ]; then + echo " L1_RPC_URL: ${L1_RPC_URL}" +else + echo " L1_RPC_URL: not set" +fi