init base chain from snapshot

This commit is contained in:
Sebastian
2023-10-22 07:58:59 +02:00
parent 90219ab8da
commit 4808637b2e

View File

@@ -30,8 +30,9 @@ fi
if [ ! -f "${GETH_DATA_DIR}/bootstrapped" ]; if [ ! -f "${GETH_DATA_DIR}/bootstrapped" ];
then then
echo "downloading snapshot" 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 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 fi
echo "$OP_NODE_L2_ENGINE_AUTH_RAW" > "$OP_NODE_L2_ENGINE_AUTH" echo "$OP_NODE_L2_ENGINE_AUTH_RAW" > "$OP_NODE_L2_ENGINE_AUTH"