From 33abd11a47ba2dd7e75120537bb4dbdf4ec487eb Mon Sep 17 00:00:00 2001 From: Trent Nelson Date: Wed, 9 Sep 2020 15:52:52 -0600 Subject: [PATCH] testnet-automation: Support --extra-primordial-stakes --- system-test/testnet-automation.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/system-test/testnet-automation.sh b/system-test/testnet-automation.sh index edf43c0db9..431b9121f5 100755 --- a/system-test/testnet-automation.sh +++ b/system-test/testnet-automation.sh @@ -134,11 +134,16 @@ function launch_testnet() { maybeAsyncNodeInit="--async-node-init" fi + declare maybeExtraPrimordialStakes + if [[ -n "$EXTRA_PRIMORDIAL_STAKES" ]]; then + maybeExtraPrimordialStakes="--extra-primordial-stakes $EXTRA_PRIMORDIAL_STAKES" + fi + # shellcheck disable=SC2068 # shellcheck disable=SC2086 "${REPO_ROOT}"/net/net.sh start $version_args \ -c idle=$NUMBER_OF_CLIENT_NODES $maybeStartAllowBootFailures \ - --gpu-mode $startGpuMode $maybeWarpSlot $maybeAsyncNodeInit + --gpu-mode $startGpuMode $maybeWarpSlot $maybeAsyncNodeInit $maybeExtraPrimordialStakes execution_step "Waiting for bootstrap validator's stake to fall below ${BOOTSTRAP_VALIDATOR_MAX_STAKE_THRESHOLD}%" wait_for_bootstrap_validator_stake_drop "$BOOTSTRAP_VALIDATOR_MAX_STAKE_THRESHOLD"