Skip to content

Commit

Permalink
clients/reth: make sure pruner doesn't start on tests (ethereum#1002)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshieDo authored Feb 27, 2024
1 parent b56b122 commit ad0b0ee
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions clients/reth/reth.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@ case "$HIVE_LOGLEVEL" in
esac

# Create the data directory.
mkdir /reth-hive-datadir
FLAGS="$FLAGS --datadir /reth-hive-datadir"
DATADIR="/reth-hive-datadir"
mkdir $DATADIR
FLAGS="$FLAGS --datadir $DATADIR"

# TODO If a specific network ID is requested, use that
#if [ "$HIVE_NETWORK_ID" != "" ]; then
Expand Down Expand Up @@ -80,6 +81,9 @@ echo $FLAGS
echo "Initializing database with genesis state..."
$reth init $FLAGS --chain /genesis.json

# Make sure pruner doesn't start
echo -e "[prune]\\nblock_interval = 500_000" >> $DATADIR/reth.toml

# make sure we use the same genesis each time
FLAGS="$FLAGS --chain /genesis.json"

Expand Down

0 comments on commit ad0b0ee

Please sign in to comment.