From ce60c473ae89c638d2efa7b1e3356c8d7e6f6e9b Mon Sep 17 00:00:00 2001 From: Nico Flaig Date: Sat, 17 Jun 2023 14:53:35 +0200 Subject: [PATCH] Provide checkpoint sync URL to Lodestar even if db folder exists --- install/scripts/start-bn.sh | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/install/scripts/start-bn.sh b/install/scripts/start-bn.sh index 1541a578..5189a2d9 100755 --- a/install/scripts/start-bn.sh +++ b/install/scripts/start-bn.sh @@ -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}