Skip to content

Commit

Permalink
Verify if checkpoint is needed
Browse files Browse the repository at this point in the history
  • Loading branch information
dappnodedev committed Jul 5, 2024
1 parent e486c56 commit 910a977
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions beacon-chain/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ MEVBOOST_FLAGS="--payload-builder=true --payload-builder-url"
. /etc/profile

handle_checkpoint() {

if [ -n "$(ls -A "${DATA_DIR}/db")" ]; then
echo "[INFO - entrypoint] Data directory has already been initialized, skipping checkpoint sync."
return
fi

# Run checkpoint sync script if provided
if [ -n "${CHECKPOINT_SYNC_URL}" ]; then
echo "[INFO - entrypoint] Running checkpoint sync script"
Expand Down

0 comments on commit 910a977

Please sign in to comment.