Skip to content

Commit ad0b0ee

Browse files
authored
clients/reth: make sure pruner doesn't start on tests (#1002)
1 parent b56b122 commit ad0b0ee

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

clients/reth/reth.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,9 @@ case "$HIVE_LOGLEVEL" in
5050
esac
5151

5252
# Create the data directory.
53-
mkdir /reth-hive-datadir
54-
FLAGS="$FLAGS --datadir /reth-hive-datadir"
53+
DATADIR="/reth-hive-datadir"
54+
mkdir $DATADIR
55+
FLAGS="$FLAGS --datadir $DATADIR"
5556

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

84+
# Make sure pruner doesn't start
85+
echo -e "[prune]\\nblock_interval = 500_000" >> $DATADIR/reth.toml
86+
8387
# make sure we use the same genesis each time
8488
FLAGS="$FLAGS --chain /genesis.json"
8589

0 commit comments

Comments
 (0)