Plumb accounts-db-skip-shrink through testnet scripts (#19290)
This commit is contained in:
parent
89a31ff473
commit
1d375ff2da
|
@ -81,6 +81,9 @@ while [[ -n $1 ]]; do
|
||||||
elif [[ $1 == --allow-private-addr ]]; then
|
elif [[ $1 == --allow-private-addr ]]; then
|
||||||
args+=("$1")
|
args+=("$1")
|
||||||
shift
|
shift
|
||||||
|
elif [[ $1 == --accounts-db-skip-shrink ]]; then
|
||||||
|
args+=("$1")
|
||||||
|
shift
|
||||||
else
|
else
|
||||||
echo "Unknown argument: $1"
|
echo "Unknown argument: $1"
|
||||||
$program --help
|
$program --help
|
||||||
|
|
|
@ -160,6 +160,9 @@ while [[ -n $1 ]]; do
|
||||||
args+=("$1")
|
args+=("$1")
|
||||||
maybe_allow_private_addr=$1
|
maybe_allow_private_addr=$1
|
||||||
shift
|
shift
|
||||||
|
elif [[ $1 == --accounts-db-skip-shrink ]]; then
|
||||||
|
args+=("$1")
|
||||||
|
shift
|
||||||
elif [[ $1 = -h ]]; then
|
elif [[ $1 = -h ]]; then
|
||||||
usage "$@"
|
usage "$@"
|
||||||
else
|
else
|
||||||
|
|
|
@ -307,7 +307,7 @@ startBootstrapLeader() {
|
||||||
$nodeIndex \
|
$nodeIndex \
|
||||||
${#clientIpList[@]} \"$benchTpsExtraArgs\" \
|
${#clientIpList[@]} \"$benchTpsExtraArgs\" \
|
||||||
\"$genesisOptions\" \
|
\"$genesisOptions\" \
|
||||||
\"$maybeNoSnapshot $maybeSkipLedgerVerify $maybeLimitLedgerSize $maybeWaitForSupermajority $maybeAllowPrivateAddr\" \
|
\"$maybeNoSnapshot $maybeSkipLedgerVerify $maybeLimitLedgerSize $maybeWaitForSupermajority $maybeAllowPrivateAddr $maybeAccountsDbSkipShrink\" \
|
||||||
\"$gpuMode\" \
|
\"$gpuMode\" \
|
||||||
\"$maybeWarpSlot\" \
|
\"$maybeWarpSlot\" \
|
||||||
\"$waitForNodeInit\" \
|
\"$waitForNodeInit\" \
|
||||||
|
@ -378,7 +378,7 @@ startNode() {
|
||||||
$nodeIndex \
|
$nodeIndex \
|
||||||
${#clientIpList[@]} \"$benchTpsExtraArgs\" \
|
${#clientIpList[@]} \"$benchTpsExtraArgs\" \
|
||||||
\"$genesisOptions\" \
|
\"$genesisOptions\" \
|
||||||
\"$maybeNoSnapshot $maybeSkipLedgerVerify $maybeLimitLedgerSize $maybeWaitForSupermajority $maybeAllowPrivateAddr\" \
|
\"$maybeNoSnapshot $maybeSkipLedgerVerify $maybeLimitLedgerSize $maybeWaitForSupermajority $maybeAllowPrivateAddr $maybeAccountsDbSkipShrink\" \
|
||||||
\"$gpuMode\" \
|
\"$gpuMode\" \
|
||||||
\"$maybeWarpSlot\" \
|
\"$maybeWarpSlot\" \
|
||||||
\"$waitForNodeInit\" \
|
\"$waitForNodeInit\" \
|
||||||
|
@ -776,6 +776,7 @@ maybeSkipLedgerVerify=""
|
||||||
maybeDisableAirdrops=""
|
maybeDisableAirdrops=""
|
||||||
maybeWaitForSupermajority=""
|
maybeWaitForSupermajority=""
|
||||||
maybeAllowPrivateAddr=""
|
maybeAllowPrivateAddr=""
|
||||||
|
maybeAccountsDbSkipShrink=""
|
||||||
debugBuild=false
|
debugBuild=false
|
||||||
doBuild=true
|
doBuild=true
|
||||||
gpuMode=auto
|
gpuMode=auto
|
||||||
|
@ -905,6 +906,9 @@ while [[ -n $1 ]]; do
|
||||||
# without -P.
|
# without -P.
|
||||||
maybeAllowPrivateAddr="$1"
|
maybeAllowPrivateAddr="$1"
|
||||||
shift 1
|
shift 1
|
||||||
|
elif [[ $1 = --accounts-db-skip-shrink ]]; then
|
||||||
|
maybeAccountsDbSkipShrink="$1"
|
||||||
|
shift 1
|
||||||
else
|
else
|
||||||
usage "Unknown long option: $1"
|
usage "Unknown long option: $1"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue