mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-09 05:52:45 +00:00
b4f9908d9d
* run logtrace in finalization CI * use specified DATA_DIR rather than assuming default * convert rest of hardcoded local_testnet_data references * logtrace asr needs DEBUG-level logs * clean up some shell (not) quoting issues
24 lines
263 B
Bash
Executable File
24 lines
263 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 SLOTS_PER_EPOCH
|
|
add_var MAX_COMMITTEES_PER_SLOT
|
|
|
|
echo "$NIM_FLAGS"
|
|
|