Skip to content

Commit 91ea22f

Browse files
committed
fix: default to proofs subdir for historical proofs storage
1 parent 0ef36d3 commit 91ea22f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

reth/reth-entrypoint

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ set -eu
33

44
IPC_PATH="/data/reth.ipc"
55
RETH_DATA_DIR=/data
6+
RETH_HISTORICAL_PROOFS_STORAGE_PATH="$RETH_DATA_DIR/proofs"
67
RPC_PORT="${RPC_PORT:-8545}"
78
WS_PORT="${WS_PORT:-8546}"
89
AUTHRPC_PORT="${AUTHRPC_PORT:-8551}"
@@ -12,7 +13,6 @@ P2P_PORT="${P2P_PORT:-30303}"
1213
ADDITIONAL_ARGS=""
1314
BINARY="./base-reth-node"
1415
RETH_HISTORICAL_PROOFS="${RETH_HISTORICAL_PROOFS:-false}"
15-
RETH_HISTORICAL_PROOFS_STORAGE_PATH="${RETH_HISTORICAL_PROOFS_STORAGE_PATH:-}"
1616
LOG_LEVEL="${LOG_LEVEL:-info}"
1717

1818
if [[ -z "${RETH_CHAIN:-}" ]]; then
@@ -117,6 +117,9 @@ if [[ "$RETH_HISTORICAL_PROOFS" == "true" && -n "$RETH_HISTORICAL_PROOFS_STORAGE
117117

118118
ADDITIONAL_ARGS="$ADDITIONAL_ARGS --proofs-history --proofs-history.storage-path=$RETH_HISTORICAL_PROOFS_STORAGE_PATH"
119119

120+
if [[ "${RETH_PROOFS_HISTORY_WINDOW+x}" = x ]]; then
121+
ADDITIONAL_ARGS="$ADDITIONAL_ARGS --proofs-history.window=$RETH_PROOFS_HISTORY_WINDOW"
122+
fi
120123
# in this case, we need to run the init script first (idempotent)
121124
"$BINARY" proofs init \
122125
-$LOG_LEVEL \

0 commit comments

Comments
 (0)