fix tests/simulation/run_node.sh
when it's run by itself to start an additional sim node
This commit is contained in:
parent
8124dbb93c
commit
21223d2627
|
@ -1,11 +1,16 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -eu
|
set -e
|
||||||
|
|
||||||
NODE_ID=${1}
|
NODE_ID=${1}
|
||||||
shift
|
shift
|
||||||
|
|
||||||
|
# Read in variables
|
||||||
source "$(dirname "$0")/vars.sh"
|
source "$(dirname "$0")/vars.sh"
|
||||||
|
|
||||||
|
# set up the environment
|
||||||
|
source "${SIM_ROOT}/../../env.sh"
|
||||||
|
|
||||||
cd "$GIT_ROOT"
|
cd "$GIT_ROOT"
|
||||||
|
|
||||||
DATA_DIR="${SIMULATION_DIR}/node-$NODE_ID"
|
DATA_DIR="${SIMULATION_DIR}/node-$NODE_ID"
|
||||||
|
|
|
@ -8,11 +8,6 @@ source "$(dirname "$0")/vars.sh"
|
||||||
# set up the environment
|
# set up the environment
|
||||||
source "${SIM_ROOT}/../../env.sh"
|
source "${SIM_ROOT}/../../env.sh"
|
||||||
|
|
||||||
# Set DEPOSIT_WEB3_URL_ARG to empty to get genesis state from file, not using web3
|
|
||||||
# export DEPOSIT_WEB3_URL_ARG=--web3-url=ws://localhost:8545
|
|
||||||
export DEPOSIT_WEB3_URL_ARG=
|
|
||||||
export DEPOSIT_CONTRACT_ADDRESS=0x
|
|
||||||
|
|
||||||
cd "$SIM_ROOT"
|
cd "$SIM_ROOT"
|
||||||
mkdir -p "$SIMULATION_DIR"
|
mkdir -p "$SIMULATION_DIR"
|
||||||
mkdir -p "$VALIDATORS_DIR"
|
mkdir -p "$VALIDATORS_DIR"
|
||||||
|
|
|
@ -28,4 +28,8 @@ BEACON_NODE_BIN="${SIMULATION_DIR}/beacon_node"
|
||||||
DEPLOY_DEPOSIT_CONTRACT_BIN="${SIMULATION_DIR}/deploy_deposit_contract"
|
DEPLOY_DEPOSIT_CONTRACT_BIN="${SIMULATION_DIR}/deploy_deposit_contract"
|
||||||
MASTER_NODE_ADDRESS_FILE="${SIMULATION_DIR}/node-0/beacon_node.address"
|
MASTER_NODE_ADDRESS_FILE="${SIMULATION_DIR}/node-0/beacon_node.address"
|
||||||
BASE_METRICS_PORT=8008
|
BASE_METRICS_PORT=8008
|
||||||
|
# Set DEPOSIT_WEB3_URL_ARG to empty to get genesis state from file, not using web3
|
||||||
|
# DEPOSIT_WEB3_URL_ARG=--web3-url=ws://localhost:8545
|
||||||
|
DEPOSIT_WEB3_URL_ARG=""
|
||||||
|
DEPOSIT_CONTRACT_ADDRESS="0x"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue