Skip to content

Commit

Permalink
fix: --syncmode is empty string
Browse files Browse the repository at this point in the history
OP_GETH_SYNCMODE in .env file is set but is empty string. Condition is never met.
  • Loading branch information
quertc authored Jul 26, 2024
1 parent 2c8b6f9 commit 660ec50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/start-op-geth.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ if [ -n "${IS_CUSTOM_CHAIN+x}" ]; then
fi

# Determine syncmode based on NODE_TYPE
if [ -z "${OP_GETH__SYNCMODE+x}" ]; then
if [ -z "$OP_GETH__SYNCMODE" ]; then
if [ "$NODE_TYPE" = "full" ]; then
export OP_GETH__SYNCMODE="snap"
else
Expand Down

0 comments on commit 660ec50

Please sign in to comment.