Skip to content

Commit

Permalink
Fix Prysm genesis
Browse files Browse the repository at this point in the history
  • Loading branch information
yorickdowne committed Sep 10, 2023
1 parent a111e6c commit 5f61bdd
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 7 deletions.
2 changes: 1 addition & 1 deletion default.env
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ GRAFFITI=🦉eth-docker🦉
# Set to true to use the client's default Graffiti. Overrides GRAFFITI
DEFAULT_GRAFFITI=false
# Merged network to use. If using main net, set to mainnet.
NETWORK=goerli
NETWORK=holesky
# CL rapid sync via initial state/checkpoint. Please use one from https://eth-clients.github.io/checkpoint-sync-endpoints/
# Alternatively, use an already synced CL that you trust. No trailing / for Teku, please.
RAPID_SYNC_URL=
Expand Down
3 changes: 2 additions & 1 deletion ethd
Original file line number Diff line number Diff line change
Expand Up @@ -2090,7 +2090,8 @@ query_checkpoint_beacon() {
RAPID_SYNC_URL="https://goerli.beaconstate.info"
;;
"holesky")
RAPID_SYNC_URL="https://holesky.beaconstate.info"
#RAPID_SYNC_URL="https://holesky.beaconstate.info"
RAPID_SYNC_URL=""
;;
"mainnet")
RAPID_SYNC_URL="https://beaconstate.info"
Expand Down
19 changes: 14 additions & 5 deletions prysm/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,20 +69,29 @@ else
fi

# Fetch genesis file as needed
if [[ "${NETWORK}" = "prater" || "${NETWORK}" = "goerli" ]]; then
if [[ "${NETWORK}" = "goerli" || "${NETWORK}" = "prater" ]]; then
GENESIS=/var/lib/prysm/genesis.ssz
if [ ! -f "$GENESIS" ]; then
echo "Fetching genesis file for Goerli testnet"
curl -fsSL -o "$GENESIS" https://github.com/eth-clients/eth2-networks/raw/master/shared/prater/genesis.ssz
echo "Fetching genesis file for Görli testnet"
curl -fsSL -o "$GENESIS" https://github.com/eth-clients/goerli/raw/main/prater/genesis.ssz
fi
# Word splitting is desired for the command line parameters
# shellcheck disable=SC2086
exec "$@" "--genesis-state=$GENESIS" ${__network} ${__rapid_sync} ${__prune} ${__mev_boost} ${CL_EXTRAS}
elif [[ "${NETWORK}" = "sepolia" ]]; then
GENESIS=/var/lib/prysm/genesis.ssz
GENESIS=/var/lib/prysm/genesis.ssz
if [ ! -f "$GENESIS" ]; then
echo "Fetching genesis file for Sepolia testnet"
curl -fsSL -o "$GENESIS" https://github.com/eth-clients/merge-testnets/raw/main/sepolia/genesis.ssz
curl -fsSL -o "$GENESIS" https://github.com/eth-clients/sepolia/raw/main/bepolia/genesis.ssz
fi
# Word splitting is desired for the command line parameters
# shellcheck disable=SC2086
exec "$@" "--genesis-state=$GENESIS" ${__network} ${__rapid_sync} ${__prune} ${__mev_boost} ${CL_EXTRAS}
elif [[ "${NETWORK}" = "holesky" ]]; then
GENESIS=/var/lib/prysm/genesis.ssz
if [ ! -f "$GENESIS" ]; then
echo "Fetching genesis file for Holešky testnet"
curl -fsSL -o "$GENESIS" https://github.com/eth-clients/holesky/raw/main/custom_config_data/genesis.ssz
fi
# Word splitting is desired for the command line parameters
# shellcheck disable=SC2086
Expand Down

0 comments on commit 5f61bdd

Please sign in to comment.