diff --git a/base/geth-entrypoint b/base/geth-entrypoint index a0393895..49b3cfbc 100755 --- a/base/geth-entrypoint +++ b/base/geth-entrypoint @@ -30,8 +30,9 @@ fi if [ ! -f "${GETH_DATA_DIR}/bootstrapped" ]; then - echo "downloading snapshot" - wget --tries=0 -O - "https://base-mainnet-archive-snapshots.s3.us-east-1.amazonaws.com/$(curl https://base-mainnet-archive-snapshots.s3.us-east-1.amazonaws.com/latest)" | tar -xz -C ${GETH_DHAINDATA_DIR} && touch ${GETH_DATA_DIR}/bootstrapped + echo "downloading snapshot" + rm -rf $GETH_CHAINDATA_DIR/* + wget --tries=0 -O - "https://base-mainnet-archive-snapshots.s3.us-east-1.amazonaws.com/$(curl https://base-mainnet-archive-snapshots.s3.us-east-1.amazonaws.com/latest)" | tar -xz -C ${GETH_CHAINDATA_DIR} && touch ${GETH_DATA_DIR}/bootstrapped fi echo "$OP_NODE_L2_ENGINE_AUTH_RAW" > "$OP_NODE_L2_ENGINE_AUTH"