Skip to content

Commit

Permalink
Stop running geth in dev mode
Browse files Browse the repository at this point in the history
  • Loading branch information
DimaStebaev committed Aug 16, 2023
1 parent 3947d50 commit 7e652c6
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions proxy/predeployed/test/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,8 @@ cd "$(dirname "$0")"

BLOCKCHAIN_DIR="/tmp/blockchain/"

# run geth to initialize ancient database
# TODO: remove when geth fixes --dev mode
echo "Run geth to initialize ancient database"
geth --datadir "$BLOCKCHAIN_DIR" &
GETH_PID=$!
sleep 1
echo "Geth PID=$GETH_PID"
kill -SIGINT $GETH_PID
echo "Stop geth"
wait $GETH_PID

echo "Run geth in dev mode"
geth --datadir "$BLOCKCHAIN_DIR" --dev --http &
geth --datadir "$BLOCKCHAIN_DIR" --http &
GETH_PID=$!
sleep 3

Expand Down

0 comments on commit 7e652c6

Please sign in to comment.