Skip to content

Commit

Permalink
Enable resync logic for Reth
Browse files Browse the repository at this point in the history
  • Loading branch information
yorickdowne committed Mar 4, 2024
1 parent 48e0249 commit af3fb74
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
6 changes: 1 addition & 5 deletions ethd
Original file line number Diff line number Diff line change
Expand Up @@ -666,10 +666,6 @@ ssv_switch() {


delete_reth() {
# Enable this when Reth changes DB
if true; then
return 0
fi
# Check for Reth
var="COMPOSE_FILE"
value=$(sed -n -e "s/^${var}=\(.*\)/\1/p" "${ENV_FILE}" || true)
Expand Down Expand Up @@ -2666,8 +2662,8 @@ query_execution_client() {
"nethermind.yml" "Nethermind (.NET)" \
"besu.yml" "Besu (Java)" \
"geth.yml" "Geth (Go)" \
"reth.yml" "Reth (Rust) - beta release" \
"erigon.yml" "Erigon (Go)" \
"reth.yml" "Reth (Rust) - alpha release" \
"NONE" "Custom - Distributed" 3>&1 1>&2 2>&3)
fi

Expand Down
1 change: 1 addition & 0 deletions reth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ services:
- RUST_LOG_STYLE=never
volumes:
- reth-el-data:/var/lib/reth
- ${ANCIENT_DIR:-.nada}:/var/lib/ancient
- /etc/localtime:/etc/localtime:ro
- jwtsecret:/var/lib/reth/ee-secret
ports:
Expand Down
9 changes: 8 additions & 1 deletion reth/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,13 @@ else
__prune="--full"
fi

__ancient=""

#if [ -n "${ANCIENT_DIR}" ] && [ ! "${ANCIENT_DIR}" = ".nada" ]; then
# echo "Using separate ancient directory at ${ANCIENT_DIR}."
# __ancient="--sumthin /var/lib/ancient"
#fi

# Word splitting is desired for the command line parameters
# shellcheck disable=SC2086
exec "$@" ${__network} ${__verbosity} ${__prune} ${EL_EXTRAS}
exec "$@" ${__network} ${__verbosity} ${__prune} ${__ancient} ${EL_EXTRAS}

0 comments on commit af3fb74

Please sign in to comment.