Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions scripts/print_node_config.sh
Original file line number Diff line number Diff line change
@@ -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