From 4298efeb23abc6d5012f49668ee5b37105b138a0 Mon Sep 17 00:00:00 2001 From: Jim McDonald Date: Fri, 23 Oct 2020 00:18:05 +0000 Subject: [PATCH] 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. --- scripts/local_testnet/clean.sh | 4 +++- scripts/local_testnet/setup.sh | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/local_testnet/clean.sh b/scripts/local_testnet/clean.sh index 192de67aec..bc4db74c61 100755 --- a/scripts/local_testnet/clean.sh +++ b/scripts/local_testnet/clean.sh @@ -6,4 +6,6 @@ source ./vars.env -rm -r $DATADIR +if [ -d $DATADIR ]; then + rm -r $DATADIR +fi diff --git a/scripts/local_testnet/setup.sh b/scripts/local_testnet/setup.sh index 8b71183540..7cd164af3f 100755 --- a/scripts/local_testnet/setup.sh +++ b/scripts/local_testnet/setup.sh @@ -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