We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b56b122 commit ad0b0eeCopy full SHA for ad0b0ee
clients/reth/reth.sh
@@ -50,8 +50,9 @@ case "$HIVE_LOGLEVEL" in
50
esac
51
52
# Create the data directory.
53
-mkdir /reth-hive-datadir
54
-FLAGS="$FLAGS --datadir /reth-hive-datadir"
+DATADIR="/reth-hive-datadir"
+mkdir $DATADIR
55
+FLAGS="$FLAGS --datadir $DATADIR"
56
57
# TODO If a specific network ID is requested, use that
58
#if [ "$HIVE_NETWORK_ID" != "" ]; then
@@ -80,6 +81,9 @@ echo $FLAGS
80
81
echo "Initializing database with genesis state..."
82
$reth init $FLAGS --chain /genesis.json
83
84
+# Make sure pruner doesn't start
85
+echo -e "[prune]\\nblock_interval = 500_000" >> $DATADIR/reth.toml
86
+
87
# make sure we use the same genesis each time
88
FLAGS="$FLAGS --chain /genesis.json"
89
0 commit comments