fix tests/simulation/run_node.sh

when it's run by itself to start an additional sim node
This commit is contained in:
Ștefan Talpalaru 2019-11-02 22:58:07 +01:00
parent 8124dbb93c
commit 21223d2627
No known key found for this signature in database
GPG Key ID: CBF7934204F1B6F9
3 changed files with 10 additions and 6 deletions

View File

@ -1,11 +1,16 @@
#!/bin/bash
set -eu
set -e
NODE_ID=${1}
shift
# Read in variables
source "$(dirname "$0")/vars.sh"
# set up the environment
source "${SIM_ROOT}/../../env.sh"
cd "$GIT_ROOT"
DATA_DIR="${SIMULATION_DIR}/node-$NODE_ID"

View File

@ -8,11 +8,6 @@ source "$(dirname "$0")/vars.sh"
# set up the environment
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"
mkdir -p "$SIMULATION_DIR"
mkdir -p "$VALIDATORS_DIR"

View File

@ -28,4 +28,8 @@ BEACON_NODE_BIN="${SIMULATION_DIR}/beacon_node"
DEPLOY_DEPOSIT_CONTRACT_BIN="${SIMULATION_DIR}/deploy_deposit_contract"
MASTER_NODE_ADDRESS_FILE="${SIMULATION_DIR}/node-0/beacon_node.address"
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"