Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: enable setting syncmode as env variable in entrypoint #26

Merged
merged 1 commit into from
Feb 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
feat: enable setting syncmode as env variable in entrypoint
  • Loading branch information
mrekucci committed Feb 20, 2024
commit 9ff7ec2ee429a1724aac400d56186a9783d313dd
7 changes: 4 additions & 3 deletions geth-poa/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -4,6 +4,7 @@ set -exu
GETH_BIN_PATH=${GETH_BIN_PATH:-geth}
GENESIS_L1_PATH=${GENESIS_L1_PATH:-/genesis.json}
VERBOSITY=${VERBOSITY:-3}
GETH_SYNC_MODE=${GETH_SYNC_MODE:-full}
GETH_DATA_DIR=${GETH_DATA_DIR:-/data}
GETH_CHAINDATA_DIR="$GETH_DATA_DIR/geth/chaindata"
GETH_KEYSTORE_DIR="$GETH_DATA_DIR/keystore"
@@ -91,7 +92,7 @@ if [ "$GETH_NODE_TYPE" = "bootnode" ]; then
--ws.port="$WS_PORT" \
--ws.origins="*" \
--ws.api=debug,eth,txpool,net,engine \
--syncmode=full \
--syncmode="${GETH_SYNC_MODE}" \
--gcmode=full \
--state.scheme=path \
--db.engine=pebble \
@@ -120,7 +121,7 @@ elif [ "$GETH_NODE_TYPE" = "signer" ]; then
--verbosity="$VERBOSITY" \
--datadir="$GETH_DATA_DIR" \
--port="$GETH_PORT" \
--syncmode=full \
--syncmode="${GETH_SYNC_MODE}" \
--gcmode=full \
--state.scheme=path \
--db.engine=pebble \
@@ -168,7 +169,7 @@ elif [ "$GETH_NODE_TYPE" = "member" ]; then
--verbosity="$VERBOSITY" \
--datadir="$GETH_DATA_DIR" \
--port="$GETH_PORT" \
--syncmode=full \
--syncmode="${GETH_SYNC_MODE}" \
--gcmode=full \
--state.scheme=path \
--db.engine=pebble \
Loading