Skip to content

Commit

Permalink
fix: remove snap sync as it's not currently supported
Browse files Browse the repository at this point in the history
  • Loading branch information
ink-victor committed Mar 4, 2025
1 parent 244dfd0 commit d613c52
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 14 deletions.
3 changes: 0 additions & 3 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ HEALTHCHECK__REFERENCE_RPC_PROVIDER=https://rpc-gel.inkonchain.com
# ↓ OPTIONAL ↓ #
###############################################################################

# Set to "full" to force op-geth to use --syncmode=full
OP_GETH__SYNCMODE=

# Feel free to customize your image tag if you want, uses "latest" by default
# See here for all available images: https://hub.docker.com/u/ethereumoptimism
IMAGE_TAG__DTL=
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,4 +213,3 @@ If you experience "walking back L1Block with curr=0x0000...:0 next=0x0000...:0"

1. Wait for a few minutes. This issue usually resolves itself after some time.
2. Restart docker compose: `docker compose down` and `docker compose up -d --build`
3. If it's still not working, try setting `OP_GETH__SYNCMODE=full` in .env and restart docker compose
11 changes: 1 addition & 10 deletions scripts/start-op-geth.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,6 @@ while [ ! -f /shared/initialized.txt ]; do
sleep 1
done

# Determine syncmode based on NODE_TYPE
if [ -z "$OP_GETH__SYNCMODE" ]; then
if [ "$NODE_TYPE" = "full" ]; then
export OP_GETH__SYNCMODE="snap"
else
export OP_GETH__SYNCMODE="full"
fi
fi

# Override Holocene
if [ ! -z "$OVERRIDE_HOLOCENE" ]; then
EXTENDED_ARG="$EXTENDED_ARG --override.holocene=$OVERRIDE_HOLOCENE"
Expand Down Expand Up @@ -56,6 +47,6 @@ exec geth \
--nodiscover \
--gpo.percentile=60 \
--verbosity=3 \
--syncmode="$OP_GETH__SYNCMODE" \
--syncmode="full" \
--gcmode="$NODE_TYPE" \
$EXTENDED_ARG $@

0 comments on commit d613c52

Please sign in to comment.