nimbus-eth2/scripts/load-testnet-nim-flags.sh
Ștefan Talpalaru f4273f7b89 Docker changes [skip ci]
- use a Debian Bullseye image
- use the distro's packages whenever possible
- cache as much as possible of the Git repos and tool binaries locally
- restrict Docker image pushing to specific branches; no build
  restrictions, to allow for easy development
2019-11-18 18:09:23 +00:00

25 lines
280 B
Bash
Executable File

#!/bin/bash
set -e
cd $(dirname "$0")
set -a
source $1.env
set +a
NIM_FLAGS=""
add_var () {
if [[ ! -z "${!1}" ]]; then
NIM_FLAGS+="-d:$1=${!1} "
fi
}
add_var CONST_PRESET
add_var NETWORK_TYPE
add_var SLOTS_PER_EPOCH
add_var MAX_COMMITTEES_PER_SLOT
echo $NIM_FLAGS