From 88fb369f90e8bc60b934efcab83d9dce3889cb20 Mon Sep 17 00:00:00 2001 From: tersec Date: Sun, 5 Jan 2025 11:01:15 +0000 Subject: [PATCH] rm unused Makefile devnet-supporting scripts (#6813) --- scripts/clean-devnet-dir.sh | 20 ---------- scripts/run-geth-in-devnet.sh | 70 --------------------------------- scripts/run-nimbus-in-devnet.sh | 39 ------------------ 3 files changed, 129 deletions(-) delete mode 100755 scripts/clean-devnet-dir.sh delete mode 100755 scripts/run-geth-in-devnet.sh delete mode 100755 scripts/run-nimbus-in-devnet.sh diff --git a/scripts/clean-devnet-dir.sh b/scripts/clean-devnet-dir.sh deleted file mode 100755 index 3dfbf9f8a..000000000 --- a/scripts/clean-devnet-dir.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env bash - -if [ -z "$1" ]; then - echo "Usage: run-devnet-el-cl-pair.sh " - exit 1 -fi - -if [ ! -d "$1" ]; then - echo "Please supply a valid network metadata directory" - exit 1 -fi - -set -Eeu - -NETWORK=$(cd "$1"; pwd) - -cd $(dirname "$0") - -source ./repo_paths.sh -rm -rf "$(data_dir_for_network)" diff --git a/scripts/run-geth-in-devnet.sh b/scripts/run-geth-in-devnet.sh deleted file mode 100755 index 5e61b9d01..000000000 --- a/scripts/run-geth-in-devnet.sh +++ /dev/null @@ -1,70 +0,0 @@ -#!/usr/bin/env bash -# Via Adrian Sutton - -if [ -z "$1" ]; then - echo "Usage: run-geth-el.sh " - exit 1 -fi - -if [ ! -d "$1" ]; then - echo "Please supply a valid network metadata directory" - exit 1 -fi - -set -Eeu - -NETWORK=$(cd "$1"; pwd) - -cd $(dirname "$0") - -source geth_binaries.sh -source repo_paths.sh - -download_geth_capella - -: ${GETH_AUTH_RPC_PORT:=18550} -: ${GETH_WS_PORT:=18551} - -DATA_DIR="$(create_data_dir_for_network "$NETWORK")" - -JWT_TOKEN="$DATA_DIR/jwt-token" -create_jwt_token "$JWT_TOKEN" - -NETWORK_ID=$(cat "$NETWORK/genesis.json" | jq '.config.chainId') - -EXECUTION_BOOTNODES="" -if [[ -f "$NETWORK/el_bootnode.txt" ]]; then - EXECUTION_BOOTNODES+=$(awk '{print $1}' "$NETWORK/el_bootnode.txt" "$NETWORK/el_bootnode.txt" | paste -s -d, -) -fi - -if [[ -f "$NETWORK/el_bootnodes.txt" ]]; then - EXECUTION_BOOTNODES+=$(awk '{print $1}' "$NETWORK/el_bootnodes.txt" "$NETWORK/el_bootnodes.txt" | paste -s -d, -) -fi - -if [[ -f "$NETWORK/bootnodes.txt" ]]; then - EXECUTION_BOOTNODES+=$(awk '{print $1}' "$NETWORK/bootnodes.txt" "$NETWORK/bootnodes.txt" | paste -s -d, -) -fi - -GETH_DATA_DIR="$DATA_DIR/geth" -EXECUTION_GENESIS_JSON="${NETWORK}/genesis.json" - -set -x - -if [[ ! -d "$GETH_DATA_DIR/geth" ]]; then - # Initialize the genesis - $GETH_CAPELLA_BINARY --http --ws -http.api "engine" --datadir "${GETH_DATA_DIR}" init "${EXECUTION_GENESIS_JSON}" -fi - -echo "Logging to $DATA_DIR/geth_output.log" - -$GETH_CAPELLA_BINARY \ - --authrpc.port ${GETH_AUTH_RPC_PORT} \ - --authrpc.jwtsecret "$JWT_TOKEN" \ - --allow-insecure-unlock \ - --datadir "${GETH_DATA_DIR}" \ - --bootnodes "${EXECUTION_BOOTNODES}" \ - --port 30308 \ - --password "" \ - --metrics \ - --syncmode snap \ - --networkid $NETWORK_ID 2>&1 | tee "$DATA_DIR/geth_output.log" diff --git a/scripts/run-nimbus-in-devnet.sh b/scripts/run-nimbus-in-devnet.sh deleted file mode 100755 index 6a86b061e..000000000 --- a/scripts/run-nimbus-in-devnet.sh +++ /dev/null @@ -1,39 +0,0 @@ -#!/usr/bin/env bash - -if [ -z "$1" ]; then - echo "Usage: run-nimbus-eth2-in-withdrawal-testnet.sh " - exit 1 -fi - -if [ ! -d "$1" ]; then - echo "Please supply a valid network metadata directory" - exit 1 -fi - -set -Eeu - -NETWORK=$(cd "$1"; pwd) - -cd $(dirname "$0") - -source repo_paths.sh - -DATA_DIR="$(create_data_dir_for_network "$NETWORK")" - -JWT_TOKEN="$DATA_DIR/jwt-token" -create_jwt_token "$JWT_TOKEN" - -"$BUILD_DIR/nimbus_beacon_node" \ - --non-interactive \ - --udp-port=19000 \ - --tcp-port=19000 \ - --network="$NETWORK" \ - --log-level=DEBUG \ - --data-dir="$DATA_DIR/nimbus_bn" \ - --web3-url=http://localhost:18550/ \ - --rest:on \ - --rest-port=15052 \ - --metrics=on \ - --metrics-port=18008 \ - --doppelganger-detection=no \ - --jwt-secret="$JWT_TOKEN"