Plumb --wait-for-supermajority through scripts (#10611) (#10614)

(cherry picked from commit 348bf78cd1)

Co-authored-by: Trent Nelson <trent@solana.com>
This commit is contained in:
mergify[bot]
2020-06-16 03:09:29 +00:00
committed by GitHub
parent 43cd5f3730
commit 0914519f6a
3 changed files with 12 additions and 2 deletions

View File

@ -57,6 +57,9 @@ while [[ -n $1 ]]; do
elif [[ $1 = --no-restart ]]; then
no_restart=1
shift
elif [[ $1 == --wait-for-supermajority ]]; then
args+=("$1" "$2")
shift 2
else
echo "Unknown argument: $1"
$program --help

View File

@ -148,6 +148,9 @@ while [[ -n $1 ]]; do
elif [[ $1 = --max-genesis-archive-unpacked-size ]]; then
args+=("$1" "$2")
shift 2
elif [[ $1 == --wait-for-supermajority ]]; then
args+=("$1" "$2")
shift 2
elif [[ $1 = -h ]]; then
usage "$@"
else

View File

@ -272,7 +272,7 @@ startBootstrapLeader() {
${#clientIpList[@]} \"$benchTpsExtraArgs\" \
${#clientIpList[@]} \"$benchExchangeExtraArgs\" \
\"$genesisOptions\" \
\"$maybeNoSnapshot $maybeSkipLedgerVerify $maybeLimitLedgerSize\" \
\"$maybeNoSnapshot $maybeSkipLedgerVerify $maybeLimitLedgerSize $maybeWaitForSupermajority\" \
\"$gpuMode\" \
\"$GEOLOCATION_API_KEY\" \
"
@ -341,7 +341,7 @@ startNode() {
${#clientIpList[@]} \"$benchTpsExtraArgs\" \
${#clientIpList[@]} \"$benchExchangeExtraArgs\" \
\"$genesisOptions\" \
\"$maybeNoSnapshot $maybeSkipLedgerVerify $maybeLimitLedgerSize\" \
\"$maybeNoSnapshot $maybeSkipLedgerVerify $maybeLimitLedgerSize $maybeWaitForSupermajority\" \
\"$gpuMode\" \
\"$GEOLOCATION_API_KEY\" \
"
@ -724,6 +724,7 @@ maybeNoSnapshot=""
maybeLimitLedgerSize=""
maybeSkipLedgerVerify=""
maybeDisableAirdrops=""
maybeWaitForSupermajority=""
debugBuild=false
doBuild=true
gpuMode=auto
@ -834,6 +835,9 @@ while [[ -n $1 ]]; do
elif [[ $1 == --client-delay-start ]]; then
clientDelayStart=$2
shift 2
elif [[ $1 == --wait-for-supermajority ]]; then
maybeWaitForSupermajority="$1 $2"
shift 2
else
usage "Unknown long option: $1"
fi