passes through --allow-private-addr to validators in system perf tests (#18876)
This commit is contained in:
@@ -78,6 +78,9 @@ while [[ -n $1 ]]; do
|
||||
elif [[ $1 == --no-snapshot-fetch ]]; then
|
||||
args+=("$1")
|
||||
shift
|
||||
elif [[ $1 == --allow-private-addr ]]; then
|
||||
args+=("$1")
|
||||
shift
|
||||
else
|
||||
echo "Unknown argument: $1"
|
||||
$program --help
|
||||
|
@@ -18,6 +18,7 @@ vote_account=
|
||||
no_restart=0
|
||||
gossip_entrypoint=
|
||||
ledger_dir=
|
||||
maybe_allow_private_addr=
|
||||
|
||||
usage() {
|
||||
if [[ -n $1 ]]; then
|
||||
@@ -155,6 +156,10 @@ while [[ -n $1 ]]; do
|
||||
elif [[ $1 == --expected-bank-hash ]]; then
|
||||
args+=("$1" "$2")
|
||||
shift 2
|
||||
elif [[ $1 == --allow-private-addr ]]; then
|
||||
args+=("$1")
|
||||
maybe_allow_private_addr=$1
|
||||
shift
|
||||
elif [[ $1 = -h ]]; then
|
||||
usage "$@"
|
||||
else
|
||||
@@ -294,7 +299,8 @@ setup_validator_accounts() {
|
||||
return 0
|
||||
}
|
||||
|
||||
rpc_url=$($solana_gossip rpc-url --timeout 180 --entrypoint "$gossip_entrypoint")
|
||||
# shellcheck disable=SC2086 # Don't want to double quote "$maybe_allow_private_addr"
|
||||
rpc_url=$($solana_gossip $maybe_allow_private_addr rpc-url --timeout 180 --entrypoint "$gossip_entrypoint")
|
||||
|
||||
[[ -r "$identity" ]] || $solana_keygen new --no-passphrase -so "$identity"
|
||||
[[ -r "$vote_account" ]] || $solana_keygen new --no-passphrase -so "$vote_account"
|
||||
|
Reference in New Issue
Block a user