Skip to content

Commit 00896b4

Browse files
committed
add read tx timeout
1 parent af87ee3 commit 00896b4

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

reth/reth-entrypoint

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,11 @@ if [[ "${RETH_PRUNING_ARGS+x}" = x ]]; then
7474
ADDITIONAL_ARGS="$ADDITIONAL_ARGS $RETH_PRUNING_ARGS"
7575
fi
7676

77+
if [[ "${RETH_DB_READ_TRANSACTION_TIMEOUT+x}" = x ]]; then
78+
echo "Adding read transaction timeout"
79+
ADDITIONAL_ARGS="$ADDITIONAL_ARGS --db.read-transaction-timeout=$RETH_DB_READ_TRANSACTION_TIMEOUT"
80+
fi
81+
7782
if [[ "$RETH_HISTORICAL_PROOFS" == "true" && -n "$RETH_HISTORICAL_PROOFS_STORAGE_PATH" ]]; then
7883
# 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
7984
"$BINARY" node \

0 commit comments

Comments
 (0)