Skip to content

Commit 322934f

Browse files
committed
fix: allow clear wal env
1 parent e684286 commit 322934f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

reth/reth-entrypoint

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ if [[ "${RETH_PRUNING_ARGS+x}" = x ]]; then
7272
ADDITIONAL_ARGS="$ADDITIONAL_ARGS $RETH_PRUNING_ARGS"
7373
fi
7474

75+
if [[ "${CLEAR_EXEX_WAL:-false}" == "true" ]]; then
76+
rm -rf $RETH_DATA_DIR/exex/wal
77+
fi
78+
7579
if [[ "$RETH_HISTORICAL_PROOFS" == "true" && -n "$RETH_HISTORICAL_PROOFS_STORAGE_PATH" ]]; then
7680
# reth doesn't like starting an old database in RO mode, so we have to start the reth node, wait for it to start up, then shut it down first
7781
"$BINARY" node \

0 commit comments

Comments
 (0)