lighthouse/scripts/local_testnet/clean.sh
Jim McDonald 4298efeb23 Update testnet scripts (#1807)
## Proposed Changes

A couple of minor fixes to the testnet scripts.

First, `clean.sh` only attempts to remove the directory if it exists.  This ensures a good exit code even if the directory is not present.

Second, `setup.sh` uses an updated deposit contract address to match that in the generated spec to allow the chain to start.
2020-10-23 00:18:05 +00:00

12 lines
137 B
Bash
Executable File

#!/bin/bash
#
# Deletes all files associated with the local testnet.
#
source ./vars.env
if [ -d $DATADIR ]; then
rm -r $DATADIR
fi