Plumb --wait-for-supermajority through scripts (#10611)
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
|
||||||
|
@ -148,6 +148,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
|
||||||
|
@ -281,7 +281,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\" \
|
||||||
"
|
"
|
||||||
@ -350,7 +350,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\" \
|
||||||
"
|
"
|
||||||
@ -733,6 +733,7 @@ maybeNoSnapshot=""
|
|||||||
maybeLimitLedgerSize=""
|
maybeLimitLedgerSize=""
|
||||||
maybeSkipLedgerVerify=""
|
maybeSkipLedgerVerify=""
|
||||||
maybeDisableAirdrops=""
|
maybeDisableAirdrops=""
|
||||||
|
maybeWaitForSupermajority=""
|
||||||
debugBuild=false
|
debugBuild=false
|
||||||
doBuild=true
|
doBuild=true
|
||||||
gpuMode=auto
|
gpuMode=auto
|
||||||
@ -843,6 +844,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