* Plumb accounts-db-skip-shrink through testnet scripts (#19290)
(cherry picked from commit 1d375ff2da
)
# Conflicts:
# multinode-demo/bootstrap-validator.sh
# multinode-demo/validator.sh
# net/net.sh
* Fix conflicts
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
Co-authored-by: Tyera Eulberg <tyera@solana.com>
This commit is contained in:
@ -75,6 +75,9 @@ while [[ -n $1 ]]; do
|
|||||||
elif [[ $1 == --maximum-snapshots-to-retain ]]; then
|
elif [[ $1 == --maximum-snapshots-to-retain ]]; then
|
||||||
args+=("$1" "$2")
|
args+=("$1" "$2")
|
||||||
shift 2
|
shift 2
|
||||||
|
elif [[ $1 == --accounts-db-skip-shrink ]]; then
|
||||||
|
args+=("$1")
|
||||||
|
shift
|
||||||
else
|
else
|
||||||
echo "Unknown argument: $1"
|
echo "Unknown argument: $1"
|
||||||
$program --help
|
$program --help
|
||||||
|
@ -155,6 +155,9 @@ while [[ -n $1 ]]; do
|
|||||||
elif [[ $1 == --expected-bank-hash ]]; then
|
elif [[ $1 == --expected-bank-hash ]]; then
|
||||||
args+=("$1" "$2")
|
args+=("$1" "$2")
|
||||||
shift 2
|
shift 2
|
||||||
|
elif [[ $1 == --accounts-db-skip-shrink ]]; then
|
||||||
|
args+=("$1")
|
||||||
|
shift
|
||||||
elif [[ $1 = -h ]]; then
|
elif [[ $1 = -h ]]; then
|
||||||
usage "$@"
|
usage "$@"
|
||||||
else
|
else
|
||||||
|
@ -309,7 +309,7 @@ startBootstrapLeader() {
|
|||||||
${#clientIpList[@]} \"$benchTpsExtraArgs\" \
|
${#clientIpList[@]} \"$benchTpsExtraArgs\" \
|
||||||
${#clientIpList[@]} \"$benchExchangeExtraArgs\" \
|
${#clientIpList[@]} \"$benchExchangeExtraArgs\" \
|
||||||
\"$genesisOptions\" \
|
\"$genesisOptions\" \
|
||||||
\"$maybeNoSnapshot $maybeSkipLedgerVerify $maybeLimitLedgerSize $maybeWaitForSupermajority\" \
|
\"$maybeNoSnapshot $maybeSkipLedgerVerify $maybeLimitLedgerSize $maybeWaitForSupermajority $maybeAccountsDbSkipShrink\" \
|
||||||
\"$gpuMode\" \
|
\"$gpuMode\" \
|
||||||
\"$maybeWarpSlot\" \
|
\"$maybeWarpSlot\" \
|
||||||
\"$waitForNodeInit\" \
|
\"$waitForNodeInit\" \
|
||||||
@ -381,7 +381,7 @@ startNode() {
|
|||||||
${#clientIpList[@]} \"$benchTpsExtraArgs\" \
|
${#clientIpList[@]} \"$benchTpsExtraArgs\" \
|
||||||
${#clientIpList[@]} \"$benchExchangeExtraArgs\" \
|
${#clientIpList[@]} \"$benchExchangeExtraArgs\" \
|
||||||
\"$genesisOptions\" \
|
\"$genesisOptions\" \
|
||||||
\"$maybeNoSnapshot $maybeSkipLedgerVerify $maybeLimitLedgerSize $maybeWaitForSupermajority\" \
|
\"$maybeNoSnapshot $maybeSkipLedgerVerify $maybeLimitLedgerSize $maybeWaitForSupermajority $maybeAccountsDbSkipShrink\" \
|
||||||
\"$gpuMode\" \
|
\"$gpuMode\" \
|
||||||
\"$maybeWarpSlot\" \
|
\"$maybeWarpSlot\" \
|
||||||
\"$waitForNodeInit\" \
|
\"$waitForNodeInit\" \
|
||||||
@ -782,6 +782,7 @@ maybeLimitLedgerSize=""
|
|||||||
maybeSkipLedgerVerify=""
|
maybeSkipLedgerVerify=""
|
||||||
maybeDisableAirdrops=""
|
maybeDisableAirdrops=""
|
||||||
maybeWaitForSupermajority=""
|
maybeWaitForSupermajority=""
|
||||||
|
maybeAccountsDbSkipShrink=""
|
||||||
debugBuild=false
|
debugBuild=false
|
||||||
doBuild=true
|
doBuild=true
|
||||||
gpuMode=auto
|
gpuMode=auto
|
||||||
@ -906,6 +907,9 @@ while [[ -n $1 ]]; do
|
|||||||
elif [[ $1 == --extra-primordial-stakes ]]; then
|
elif [[ $1 == --extra-primordial-stakes ]]; then
|
||||||
extraPrimordialStakes=$2
|
extraPrimordialStakes=$2
|
||||||
shift 2
|
shift 2
|
||||||
|
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
|
||||||
|
Reference in New Issue
Block a user