From 4808637b2efd356c78fe3c5e0364c00158aa96af Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Sun, 22 Oct 2023 07:58:59 +0200 Subject: [PATCH] init base chain from snapshot --- base/geth-entrypoint | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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"