(cherry picked from commit 348bf78cd1
)
Co-authored-by: Trent Nelson <trent@solana.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This commit is contained in:
@ -57,6 +57,9 @@ while [[ -n $1 ]]; do
|
|||||||
elif [[ $1 = --no-restart ]]; then
|
elif [[ $1 = --no-restart ]]; then
|
||||||
no_restart=1
|
no_restart=1
|
||||||
shift
|
shift
|
||||||
|
elif [[ $1 == --wait-for-supermajority ]]; then
|
||||||
|
args+=("$1" "$2")
|
||||||
|
shift 2
|
||||||
else
|
else
|
||||||
echo "Unknown argument: $1"
|
echo "Unknown argument: $1"
|
||||||
$program --help
|
$program --help
|
||||||
|
@ -152,6 +152,9 @@ while [[ -n $1 ]]; do
|
|||||||
elif [[ $1 = --max-genesis-archive-unpacked-size ]]; then
|
elif [[ $1 = --max-genesis-archive-unpacked-size ]]; then
|
||||||
args+=("$1" "$2")
|
args+=("$1" "$2")
|
||||||
shift 2
|
shift 2
|
||||||
|
elif [[ $1 == --wait-for-supermajority ]]; then
|
||||||
|
args+=("$1" "$2")
|
||||||
|
shift 2
|
||||||
elif [[ $1 = -h ]]; then
|
elif [[ $1 = -h ]]; then
|
||||||
usage "$@"
|
usage "$@"
|
||||||
else
|
else
|
||||||
|
@ -272,7 +272,7 @@ startBootstrapLeader() {
|
|||||||
${#clientIpList[@]} \"$benchTpsExtraArgs\" \
|
${#clientIpList[@]} \"$benchTpsExtraArgs\" \
|
||||||
${#clientIpList[@]} \"$benchExchangeExtraArgs\" \
|
${#clientIpList[@]} \"$benchExchangeExtraArgs\" \
|
||||||
\"$genesisOptions\" \
|
\"$genesisOptions\" \
|
||||||
\"$maybeNoSnapshot $maybeSkipLedgerVerify $maybeLimitLedgerSize\" \
|
\"$maybeNoSnapshot $maybeSkipLedgerVerify $maybeLimitLedgerSize $maybeWaitForSupermajority\" \
|
||||||
\"$gpuMode\" \
|
\"$gpuMode\" \
|
||||||
\"$GEOLOCATION_API_KEY\" \
|
\"$GEOLOCATION_API_KEY\" \
|
||||||
"
|
"
|
||||||
@ -341,7 +341,7 @@ startNode() {
|
|||||||
${#clientIpList[@]} \"$benchTpsExtraArgs\" \
|
${#clientIpList[@]} \"$benchTpsExtraArgs\" \
|
||||||
${#clientIpList[@]} \"$benchExchangeExtraArgs\" \
|
${#clientIpList[@]} \"$benchExchangeExtraArgs\" \
|
||||||
\"$genesisOptions\" \
|
\"$genesisOptions\" \
|
||||||
\"$maybeNoSnapshot $maybeSkipLedgerVerify $maybeLimitLedgerSize\" \
|
\"$maybeNoSnapshot $maybeSkipLedgerVerify $maybeLimitLedgerSize $maybeWaitForSupermajority\" \
|
||||||
\"$gpuMode\" \
|
\"$gpuMode\" \
|
||||||
\"$GEOLOCATION_API_KEY\" \
|
\"$GEOLOCATION_API_KEY\" \
|
||||||
"
|
"
|
||||||
@ -727,6 +727,7 @@ maybeNoSnapshot=""
|
|||||||
maybeLimitLedgerSize=""
|
maybeLimitLedgerSize=""
|
||||||
maybeSkipLedgerVerify=""
|
maybeSkipLedgerVerify=""
|
||||||
maybeDisableAirdrops=""
|
maybeDisableAirdrops=""
|
||||||
|
maybeWaitForSupermajority=""
|
||||||
debugBuild=false
|
debugBuild=false
|
||||||
doBuild=true
|
doBuild=true
|
||||||
gpuMode=auto
|
gpuMode=auto
|
||||||
@ -837,6 +838,9 @@ while [[ -n $1 ]]; do
|
|||||||
elif [[ $1 == --client-delay-start ]]; then
|
elif [[ $1 == --client-delay-start ]]; then
|
||||||
clientDelayStart=$2
|
clientDelayStart=$2
|
||||||
shift 2
|
shift 2
|
||||||
|
elif [[ $1 == --wait-for-supermajority ]]; then
|
||||||
|
maybeWaitForSupermajority="$1 $2"
|
||||||
|
shift 2
|
||||||
else
|
else
|
||||||
usage "Unknown long option: $1"
|
usage "Unknown long option: $1"
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user