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.
This commit is contained in:
Jim McDonald 2020-10-23 00:18:05 +00:00
parent 542f755ac5
commit 4298efeb23
2 changed files with 4 additions and 2 deletions

View File

@ -6,4 +6,6 @@
source ./vars.env
rm -r $DATADIR
if [ -d $DATADIR ]; then
rm -r $DATADIR
fi

View File

@ -10,7 +10,7 @@ source ./vars.env
lcli \
--spec mainnet \
new-testnet \
--deposit-contract-address 0000000000000000000000000000000000000000 \
--deposit-contract-address 1234567890123456789012345678901234567890 \
--testnet-dir $TESTNET_DIR \
--min-genesis-active-validator-count $VALIDATOR_COUNT \
--force