Skip to content

Commit

Permalink
Merge pull request #13 from dappnode/pablomendezroyo-patch-1
Browse files Browse the repository at this point in the history
Use `--checkpoint-sync-url` flag instead of initial state
  • Loading branch information
Marketen authored Nov 5, 2024
2 parents fc70a7b + 5c89caa commit 7769b48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions beacon-chain/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh

CHECKPOINT_SYNC_KEY="--initial-state"
CHECKPOINT_SYNC_KEY="--checkpoint-sync-url"
MEVBOOST_FLAG_KEYS="--builder-endpoint"

# shellcheck disable=SC1091 # Path is relative to the Dockerfile
Expand All @@ -11,7 +11,7 @@ VALID_FEE_RECIPIENT=$(get_valid_fee_recipient "${FEE_RECIPIENT_ADDRESS}")
MEVBOOST_FLAG=$(get_mevboost_flag "${NETWORK}" "${MEVBOOST_FLAG_KEYS}")

if [ -n "${CHECKPOINT_SYNC_URL}" ]; then
TEKU_FORMAT_CHECKPOINT_URL="$(echo "${CHECKPOINT_SYNC_URL}" | sed 's:/*$::')/eth/v2/debug/beacon/states/finalized"
TEKU_FORMAT_CHECKPOINT_URL="$(echo "${CHECKPOINT_SYNC_URL}" | sed 's:/*$::')"
CHECKPOINT_SYNC_FLAG=$(get_checkpoint_sync_flag "${CHECKPOINT_SYNC_KEY}" "${TEKU_FORMAT_CHECKPOINT_URL}")
fi

Expand Down

0 comments on commit 7769b48

Please sign in to comment.