Plumb accounts-db-skip-shrink through testnet scripts (#19290)
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
@@ -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
 | 
			
		||||
 
 | 
			
		||||
@@ -307,7 +307,7 @@ startBootstrapLeader() {
 | 
			
		||||
         $nodeIndex \
 | 
			
		||||
         ${#clientIpList[@]} \"$benchTpsExtraArgs\" \
 | 
			
		||||
         \"$genesisOptions\" \
 | 
			
		||||
         \"$maybeNoSnapshot $maybeSkipLedgerVerify $maybeLimitLedgerSize $maybeWaitForSupermajority $maybeAllowPrivateAddr\" \
 | 
			
		||||
         \"$maybeNoSnapshot $maybeSkipLedgerVerify $maybeLimitLedgerSize $maybeWaitForSupermajority $maybeAllowPrivateAddr $maybeAccountsDbSkipShrink\" \
 | 
			
		||||
         \"$gpuMode\" \
 | 
			
		||||
         \"$maybeWarpSlot\" \
 | 
			
		||||
         \"$waitForNodeInit\" \
 | 
			
		||||
@@ -378,7 +378,7 @@ startNode() {
 | 
			
		||||
         $nodeIndex \
 | 
			
		||||
         ${#clientIpList[@]} \"$benchTpsExtraArgs\" \
 | 
			
		||||
         \"$genesisOptions\" \
 | 
			
		||||
         \"$maybeNoSnapshot $maybeSkipLedgerVerify $maybeLimitLedgerSize $maybeWaitForSupermajority $maybeAllowPrivateAddr\" \
 | 
			
		||||
         \"$maybeNoSnapshot $maybeSkipLedgerVerify $maybeLimitLedgerSize $maybeWaitForSupermajority $maybeAllowPrivateAddr $maybeAccountsDbSkipShrink\" \
 | 
			
		||||
         \"$gpuMode\" \
 | 
			
		||||
         \"$maybeWarpSlot\" \
 | 
			
		||||
         \"$waitForNodeInit\" \
 | 
			
		||||
@@ -776,6 +776,7 @@ maybeSkipLedgerVerify=""
 | 
			
		||||
maybeDisableAirdrops=""
 | 
			
		||||
maybeWaitForSupermajority=""
 | 
			
		||||
maybeAllowPrivateAddr=""
 | 
			
		||||
maybeAccountsDbSkipShrink=""
 | 
			
		||||
debugBuild=false
 | 
			
		||||
doBuild=true
 | 
			
		||||
gpuMode=auto
 | 
			
		||||
@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user