Skip to content

Commit

Permalink
Fix Prysm Genesis detection
Browse files Browse the repository at this point in the history
  • Loading branch information
yorickdowne committed Sep 4, 2023
1 parent 4afa022 commit e7dc10b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions prysm/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ else
fi

# Fetch genesis file as needed
if [[ "$*" =~ --prater || "$*" =~ --goerli ]]; then
if [[ "${NETWORK}" = "prater" || "${NETWORK}" = "goerli" ]]; then
GENESIS=/var/lib/prysm/genesis.ssz
if [ ! -f "$GENESIS" ]; then
echo "Fetching genesis file for Goerli testnet"
Expand All @@ -78,7 +78,7 @@ if [[ "$*" =~ --prater || "$*" =~ --goerli ]]; then
# Word splitting is desired for the command line parameters
# shellcheck disable=SC2086
exec "$@" "--genesis-state=$GENESIS" ${__rapid_sync} ${__prune} ${__mev_boost} ${CL_EXTRAS}
elif [[ "$*" =~ --sepolia ]]; then
elif [[ "${NETWORK}" = "sepolia" ]]; then
GENESIS=/var/lib/prysm/genesis.ssz
if [ ! -f "$GENESIS" ]; then
echo "Fetching genesis file for Sepolia testnet"
Expand Down

0 comments on commit e7dc10b

Please sign in to comment.