Skip to content

Commit

Permalink
Plumb accounts-db-skip-shrink through testnet scripts (solana-labs#19290
Browse files Browse the repository at this point in the history
)
  • Loading branch information
CriesofCarrots authored Aug 18, 2021
1 parent 89a31ff commit 1d375ff
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
3 changes: 3 additions & 0 deletions multinode-demo/bootstrap-validator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ while [[ -n $1 ]]; do
elif [[ $1 == --allow-private-addr ]]; then
args+=("$1")
shift
elif [[ $1 == --accounts-db-skip-shrink ]]; then
args+=("$1")
shift
else
echo "Unknown argument: $1"
$program --help
Expand Down
3 changes: 3 additions & 0 deletions multinode-demo/validator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,9 @@ while [[ -n $1 ]]; do
args+=("$1")
maybe_allow_private_addr=$1
shift
elif [[ $1 == --accounts-db-skip-shrink ]]; then
args+=("$1")
shift
elif [[ $1 = -h ]]; then
usage "$@"
else
Expand Down
8 changes: 6 additions & 2 deletions net/net.sh
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ startBootstrapLeader() {
$nodeIndex \
${#clientIpList[@]} \"$benchTpsExtraArgs\" \
\"$genesisOptions\" \
\"$maybeNoSnapshot $maybeSkipLedgerVerify $maybeLimitLedgerSize $maybeWaitForSupermajority $maybeAllowPrivateAddr\" \
\"$maybeNoSnapshot $maybeSkipLedgerVerify $maybeLimitLedgerSize $maybeWaitForSupermajority $maybeAllowPrivateAddr $maybeAccountsDbSkipShrink\" \
\"$gpuMode\" \
\"$maybeWarpSlot\" \
\"$waitForNodeInit\" \
Expand Down Expand Up @@ -378,7 +378,7 @@ startNode() {
$nodeIndex \
${#clientIpList[@]} \"$benchTpsExtraArgs\" \
\"$genesisOptions\" \
\"$maybeNoSnapshot $maybeSkipLedgerVerify $maybeLimitLedgerSize $maybeWaitForSupermajority $maybeAllowPrivateAddr\" \
\"$maybeNoSnapshot $maybeSkipLedgerVerify $maybeLimitLedgerSize $maybeWaitForSupermajority $maybeAllowPrivateAddr $maybeAccountsDbSkipShrink\" \
\"$gpuMode\" \
\"$maybeWarpSlot\" \
\"$waitForNodeInit\" \
Expand Down Expand Up @@ -776,6 +776,7 @@ maybeSkipLedgerVerify=""
maybeDisableAirdrops=""
maybeWaitForSupermajority=""
maybeAllowPrivateAddr=""
maybeAccountsDbSkipShrink=""
debugBuild=false
doBuild=true
gpuMode=auto
Expand Down Expand Up @@ -905,6 +906,9 @@ while [[ -n $1 ]]; do
# without -P.
maybeAllowPrivateAddr="$1"
shift 1
elif [[ $1 = --accounts-db-skip-shrink ]]; then
maybeAccountsDbSkipShrink="$1"
shift 1
else
usage "Unknown long option: $1"
fi
Expand Down

0 comments on commit 1d375ff

Please sign in to comment.