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:
parent
542f755ac5
commit
4298efeb23
@ -6,4 +6,6 @@
|
|||||||
|
|
||||||
source ./vars.env
|
source ./vars.env
|
||||||
|
|
||||||
|
if [ -d $DATADIR ]; then
|
||||||
rm -r $DATADIR
|
rm -r $DATADIR
|
||||||
|
fi
|
||||||
|
@ -10,7 +10,7 @@ source ./vars.env
|
|||||||
lcli \
|
lcli \
|
||||||
--spec mainnet \
|
--spec mainnet \
|
||||||
new-testnet \
|
new-testnet \
|
||||||
--deposit-contract-address 0000000000000000000000000000000000000000 \
|
--deposit-contract-address 1234567890123456789012345678901234567890 \
|
||||||
--testnet-dir $TESTNET_DIR \
|
--testnet-dir $TESTNET_DIR \
|
||||||
--min-genesis-active-validator-count $VALIDATOR_COUNT \
|
--min-genesis-active-validator-count $VALIDATOR_COUNT \
|
||||||
--force
|
--force
|
||||||
|
Loading…
Reference in New Issue
Block a user