Skip to content

Commit

Permalink
Merge pull request #102 from nflaig/lodestar-always-set-checkpoint-sync
Browse files Browse the repository at this point in the history
Provide checkpoint sync URL to Lodestar even if db folder exists
  • Loading branch information
jclapis authored Jun 19, 2023
2 parents c01e28b + ce60c47 commit fd3da60
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions install/scripts/start-bn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,7 @@ if [ "$CC_CLIENT" = "lodestar" ]; then
fi

if [ ! -z "$CHECKPOINT_SYNC_URL" ]; then
# Ignore it if a DB already exists
if [ -d "/ethclient/lodestar/chain-db" ]; then
echo "Lodestar database already exists, ignoring checkpoint sync."
else
echo "No database detected, enabling checkpoint sync."
CMD="$CMD --checkpointSyncUrl $CHECKPOINT_SYNC_URL"
fi
CMD="$CMD --checkpointSyncUrl $CHECKPOINT_SYNC_URL"
fi

exec ${CMD}
Expand Down

0 comments on commit fd3da60

Please sign in to comment.