2019-09-01 15:02:49 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
PWD_CMD="pwd"
|
|
|
|
# get native Windows paths on Mingw
|
|
|
|
uname | grep -qi mingw && PWD_CMD="pwd -W"
|
|
|
|
|
|
|
|
cd $(dirname $0)
|
|
|
|
|
|
|
|
SIM_ROOT="$($PWD_CMD)"
|
|
|
|
|
|
|
|
# Set a default value for the env vars usually supplied by a Makefile
|
|
|
|
cd $(git rev-parse --show-toplevel)
|
|
|
|
: ${GIT_ROOT:="$($PWD_CMD)"}
|
|
|
|
cd - &>/dev/null
|
|
|
|
|
2019-09-27 16:17:03 +00:00
|
|
|
NUM_VALIDATORS=${VALIDATORS:-25}
|
|
|
|
NUM_NODES=${NODES:-1}
|
|
|
|
NUM_MISSING_NODES=${MISSING_NODES:-2}
|
2019-09-01 15:02:49 +00:00
|
|
|
|
|
|
|
SIMULATION_DIR="${SIM_ROOT}/data"
|
|
|
|
VALIDATORS_DIR="${SIM_ROOT}/validators"
|
|
|
|
SNAPSHOT_FILE="${SIMULATION_DIR}/state_snapshot.json"
|
2019-10-28 23:04:52 +00:00
|
|
|
NETWORK_BOOTSTRAP_FILE="${SIMULATION_DIR}/bootstrap_nodes.txt"
|
2019-09-01 15:02:49 +00:00
|
|
|
BEACON_NODE_BIN="${SIMULATION_DIR}/beacon_node"
|
|
|
|
MASTER_NODE_ADDRESS_FILE="${SIMULATION_DIR}/node-0/beacon_node.address"
|