Skip to content

Commit

Permalink
Merge pull request #88 from ethpandaops/pk910/external-validators
Browse files Browse the repository at this point in the history
Add support for additional validator key import
  • Loading branch information
pk910 authored Jan 23, 2024
2 parents 6d76688 + c5f060e commit 6a80aa3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions config-example/values.env
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
8 changes: 8 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6a80aa3

Please sign in to comment.