File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33
44IPC_PATH=" /data/reth.ipc"
55RETH_DATA_DIR=/data
6+ RETH_HISTORICAL_PROOFS_STORAGE_PATH=" $RETH_DATA_DIR /proofs"
67RPC_PORT=" ${RPC_PORT:- 8545} "
78WS_PORT=" ${WS_PORT:- 8546} "
89AUTHRPC_PORT=" ${AUTHRPC_PORT:- 8551} "
@@ -12,7 +13,6 @@ P2P_PORT="${P2P_PORT:-30303}"
1213ADDITIONAL_ARGS=" "
1314BINARY=" ./base-reth-node"
1415RETH_HISTORICAL_PROOFS=" ${RETH_HISTORICAL_PROOFS:- false} "
15- RETH_HISTORICAL_PROOFS_STORAGE_PATH=" ${RETH_HISTORICAL_PROOFS_STORAGE_PATH:- } "
1616LOG_LEVEL=" ${LOG_LEVEL:- info} "
1717
1818if [[ -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 \
You can’t perform that action at this time.
0 commit comments