Use reusable provider-specific testnet keypairs (#6866)

* Use reusable provider-specific testnet keypairs

* shellcheck
This commit is contained in:
Dan Albert 2019-11-11 12:08:22 -07:00 committed by GitHub
parent cc6e1ea200
commit a23c6177d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -133,6 +133,15 @@ function launchTestnet() {
echo --- configure database
net/init-metrics.sh -e
echo --- fetch reusable testnet keypairs
if [[ ! -d net/keypairs ]] ; then
git clone git@github.com:solana-labs/testnet-keypairs.git net/keypairs
# If we have provider-specific keys (CoLo*, GCE*, etc) use them instead of generic val*
if [[ -d net/keypairs/"${CLOUD_PROVIDER}" ]] ; then
cp net/keypairs/"${CLOUD_PROVIDER}"/* net/keypairs/
fi
fi
echo --- start "$NUMBER_OF_VALIDATOR_NODES" node test
if [[ -n $CHANNEL ]]; then
# shellcheck disable=SC2068