2022-10-14 03:18:39 +00:00
|
|
|
# Base directories for the validator keys and secrets
|
|
|
|
DATADIR=${DATADIR:-../build/cl}
|
|
|
|
|
|
|
|
# Directory for the eth2 config
|
|
|
|
TESTNET_DIR=${TESTNET_DIR:-$DATADIR/testnet}
|
|
|
|
JWTSECRET=${JWTSECRET:-$DATADIR/jwtsecret}
|
2022-10-31 17:43:49 +00:00
|
|
|
ENR=${ENR:="SET_AT_RUNTIME"}
|
|
|
|
ENR_IP=`ip addr | grep inet | grep -v '127.0.0.1' | sort | head -1 | awk '{print $2}' | cut -d '/' -f1`
|
2022-10-14 03:18:39 +00:00
|
|
|
|
|
|
|
GENESIS_FORK_VERSION=${GENESIS_FORK_VERSION:-0x12121212}
|
|
|
|
|
|
|
|
VALIDATOR_COUNT=${VALIDATOR_COUNT:-80}
|
|
|
|
GENESIS_VALIDATOR_COUNT=${GENESIS_VALIDATOR_COUNT:-80}
|
|
|
|
|
|
|
|
# Number of beacon_node instances that you intend to run
|
|
|
|
BN_COUNT=${BN_COUNT:-2}
|
|
|
|
|
|
|
|
# Number of seconds to delay to start genesis block.
|
|
|
|
# If started by a script this can be 0, if starting by hand
|
|
|
|
# use something like 180.
|
|
|
|
GENESIS_DELAY=${GENESIS_DELAY:-0}
|
|
|
|
|
|
|
|
# Port for P2P communication with bootnode
|
|
|
|
BOOTNODE_PORT=${BOOTNODE_PORT:-4242}
|
|
|
|
|
|
|
|
# Hard fork configuration
|
2022-10-31 17:43:49 +00:00
|
|
|
ALTAIR_FORK_EPOCH=${ALTAIR_FORK_EPOCH:-0}
|
|
|
|
MERGE_FORK_EPOCH=${MERGE_FORK_EPOCH:-0}
|
2022-10-14 03:18:39 +00:00
|
|
|
|
|
|
|
# Spec version (mainnet or minimal)
|
|
|
|
SPEC_PRESET=${SPEC_PRESET:-mainnet}
|
|
|
|
|
|
|
|
# Seconds per Eth2 slot
|
|
|
|
SECONDS_PER_SLOT=${SECONDS_PER_SLOT:-3}
|
|
|
|
|
|
|
|
# Seconds per Eth1 block
|
|
|
|
SECONDS_PER_ETH1_BLOCK=${SECONDS_PER_ETH1_BLOCK:-1}
|
|
|
|
|
|
|
|
# Command line arguments for validator client
|
|
|
|
VC_ARGS=${VC_ARGS:-""}
|
|
|
|
|
|
|
|
EXECUTION_ENDPOINT=${EXECUTION_ENDPOINT:-http://localhost:8551}
|
|
|
|
|
2022-10-31 17:43:49 +00:00
|
|
|
ETH1_GENESIS_JSON=${ETH1_GENESIS_JSON:-"../build/el/geth.json"}
|
2022-10-14 03:18:39 +00:00
|
|
|
ETH1_CONFIG_YAML=${ETH1_CONFIG_YAML:-"../el/el-config.yaml"}
|
|
|
|
|
2022-10-31 17:43:49 +00:00
|
|
|
ETH1_CHAIN_ID=${ETH1_CHAIN_ID:-`cat $ETH1_GENESIS_JSON | jq -r '.config.chainId'`}
|
|
|
|
ETH1_TTD=${ETH1_TTD:-`cat $ETH1_GENESIS_JSON | jq -r '.config.terminalTotalDifficulty'`}
|
2022-10-14 03:18:39 +00:00
|
|
|
ETH1_DEPOSIT_CONTRACT_ADDRESS=${ETH1_DEPOSIT_CONTRACT_ADDRESS:-`cat $ETH1_CONFIG_YAML | grep 'deposit_contract_address' | awk '{ print $2 }' | sed 's/"//g'`}
|
|
|
|
ETH1_DEPOSIT_CONTRACT_BLOCK=${ETH1_DEPOSIT_CONTRACT_BLOCK:-0x0}
|
2022-10-14 21:58:46 +00:00
|
|
|
SUGGESTED_FEE_RECIPIENT=`cat ../build/el/accounts.csv | head -1 | cut -d',' -f2`
|