mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-09 05:52:45 +00:00
7b73b40bab
* add interop launcher scripts * stick validator_keygen into beacon_node * fix lmd ghost slot number on missing block * use mocked eth1data when producing blocks * use bls public key method for withdrawal credentials * fix deposit domain * prefer lowercase for a bunch of toHex * build simulation binary in data folder to avoid data types confusion
27 lines
773 B
Bash
27 lines
773 B
Bash
#!/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
|
|
|
|
NUM_VALIDATORS=${VALIDATORS:-1000}
|
|
NUM_NODES=${NODES:-4}
|
|
NUM_MISSING_NODES=${MISSING_NODES:-0}
|
|
|
|
SIMULATION_DIR="${SIM_ROOT}/data"
|
|
VALIDATORS_DIR="${SIM_ROOT}/validators"
|
|
SNAPSHOT_FILE="${SIMULATION_DIR}/state_snapshot.json"
|
|
NETWORK_METADATA_FILE="${SIMULATION_DIR}/network.json"
|
|
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"
|