Skip to content

Commit

Permalink
fix: remove unnecessary --allow-private-addr setup (solana-labs#30552)
Browse files Browse the repository at this point in the history
  • Loading branch information
yihau authored Feb 28, 2023
1 parent 781a7cb commit 676e3e1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 13 deletions.
1 change: 0 additions & 1 deletion net/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ loadConfigFile() {
entrypointIp=${validatorIpList[0]}
else
entrypointIp=${validatorIpListPrivate[0]}
maybeAllowPrivateAddr='--allow-private-addr'
fi

buildSshOptions
Expand Down
9 changes: 3 additions & 6 deletions net/net.sh
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ startBootstrapLeader() {
$nodeIndex \
${#clientIpList[@]} \"$benchTpsExtraArgs\" \
\"$genesisOptions\" \
\"$maybeNoSnapshot $maybeSkipLedgerVerify $maybeLimitLedgerSize $maybeWaitForSupermajority $maybeAllowPrivateAddr $maybeAccountsDbSkipShrink $maybeSkipRequireTower\" \
\"$maybeNoSnapshot $maybeSkipLedgerVerify $maybeLimitLedgerSize $maybeWaitForSupermajority $maybeAccountsDbSkipShrink $maybeSkipRequireTower\" \
\"$gpuMode\" \
\"$maybeWarpSlot\" \
\"$maybeFullRpc\" \
Expand Down Expand Up @@ -397,7 +397,7 @@ startNode() {
$nodeIndex \
${#clientIpList[@]} \"$benchTpsExtraArgs\" \
\"$genesisOptions\" \
\"$maybeNoSnapshot $maybeSkipLedgerVerify $maybeLimitLedgerSize $maybeWaitForSupermajority $maybeAllowPrivateAddr $maybeAccountsDbSkipShrink $maybeSkipRequireTower\" \
\"$maybeNoSnapshot $maybeSkipLedgerVerify $maybeLimitLedgerSize $maybeWaitForSupermajority $maybeAccountsDbSkipShrink $maybeSkipRequireTower\" \
\"$gpuMode\" \
\"$maybeWarpSlot\" \
\"$maybeFullRpc\" \
Expand Down Expand Up @@ -797,7 +797,6 @@ maybeLimitLedgerSize=""
maybeSkipLedgerVerify=""
maybeDisableAirdrops=""
maybeWaitForSupermajority=""
maybeAllowPrivateAddr=""
maybeAccountsDbSkipShrink=""
maybeSkipRequireTower=""
debugBuild=false
Expand Down Expand Up @@ -942,9 +941,7 @@ while [[ -n $1 ]]; do
extraPrimordialStakes=$2
shift 2
elif [[ $1 = --allow-private-addr ]]; then
# May also be added by loadConfigFile if 'gce.sh create' was invoked
# without -P.
maybeAllowPrivateAddr="$1"
echo "--allow-private-addr is a default value"
shift 1
elif [[ $1 = --accounts-db-skip-shrink ]]; then
maybeAccountsDbSkipShrink="$1"
Expand Down
7 changes: 1 addition & 6 deletions system-test/testnet-automation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,6 @@ function launch_testnet() {
maybeAsyncNodeInit="--async-node-init"
fi

declare maybeAllowPrivateAddr
if [[ "$ALLOW_PRIVATE_ADDR" = "true" ]]; then
maybeAllowPrivateAddr="--allow-private-addr"
fi

declare maybeExtraPrimordialStakes
if [[ -n "$EXTRA_PRIMORDIAL_STAKES" ]]; then
maybeExtraPrimordialStakes="--extra-primordial-stakes $EXTRA_PRIMORDIAL_STAKES"
Expand All @@ -151,7 +146,7 @@ function launch_testnet() {
"${REPO_ROOT}"/net/net.sh start $version_args \
-c idle=$NUMBER_OF_CLIENT_NODES $maybeStartAllowBootFailures \
--gpu-mode $startGpuMode $maybeWarpSlot $maybeAsyncNodeInit \
$maybeExtraPrimordialStakes $maybeAllowPrivateAddr
$maybeExtraPrimordialStakes

if [[ -n "$WAIT_FOR_EQUAL_STAKE" ]]; then
wait_for_equal_stake
Expand Down

0 comments on commit 676e3e1

Please sign in to comment.