diff --git a/config-example/values.env b/config-example/values.env index 538b050..48d498d 100644 --- a/config-example/values.env +++ b/config-example/values.env @@ -1,6 +1,7 @@ export CHAIN_ID="1337" export DEPOSIT_CONTRACT_ADDRESS="0x6f22fFbC56eFF051aECF839396DD1eD9aD6BBA9D" export EL_AND_CL_MNEMONIC="sleep moment list remain like wall lake industry canvas wonder ecology elite duck salad naive syrup frame brass utility club odor country obey pudding" +export CL_ADDITIONAL_VALIDATORS="" export CL_EXEC_BLOCK="0" export SLOT_DURATION_IN_SECONDS=12 export DEPOSIT_CONTRACT_BLOCK="0x0000000000000000000000000000000000000000000000000000000000000000" diff --git a/entrypoint.sh b/entrypoint.sh index 4a89746..b427a74 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -66,6 +66,14 @@ gen_cl_config(){ else genesis_args+=(--eth1-config /data/custom_config_data/genesis.json) fi + if ! [ -z "$CL_ADDITIONAL_VALIDATORS" ]; then + if [[ $CL_ADDITIONAL_VALIDATORS = /* ]]; then + validators_file=$CL_ADDITIONAL_VALIDATORS + else + validators_file="/config/$CL_ADDITIONAL_VALIDATORS" + fi + genesis_args+=(--additional-validators $validators_file) + fi /usr/local/bin/eth2-testnet-genesis "${genesis_args[@]}" /usr/local/bin/zcli pretty capella BeaconState /data/custom_config_data/genesis.ssz > /data/custom_config_data/parsedBeaconState.json jq -r '.eth1_data.block_hash' /data/custom_config_data/parsedBeaconState.json | tr -d '\n' > /data/custom_config_data/deposit_contract_block_hash.txt